home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!west.West.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!news
- From: exumfox@exu.ericsson.se (Mike Fox)
- Newsgroups: comp.unix.questions
- Subject: Re: Directory Name in Unix Prompt
- Message-ID: <1992Sep1.230753.3256@exu.ericsson.se>
- Date: 1 Sep 92 23:07:53 GMT
- References: <1992Sep1.201139.11787@wdl.loral.com>
- Sender: news@exu.ericsson.se
- Reply-To: exumfox@exu.ericsson.se
- Organization: Ericsson Network Systems
- Lines: 7
- Nntp-Posting-Host: s11a08.exu.ericsson.se
-
-
- I would suggest the .cshrc file instead of .login
- and add these lines.
-
- set HOST=`hostname`
- alias cd '\!:0-$; set_prompt'
- alias set_prompt 'set prompt = "'$HOST':${cwd} % "'
-