home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!news.univie.ac.at!vm.univie.ac.at!E2311DAA
- From: E2311DAA@vm.univie.ac.at
- Subject: Re: Directory Name in Unix Prompt
- Message-ID: <1992Sep9.195812.14683@newssrv.edvz.univie.ac.at>
- Sender: news@newssrv.edvz.univie.ac.at (News System - Vienna University)
- Nntp-Posting-Host: helios.edvz.univie.ac.at
- Organization: University of Vienna
- Date: Wed, 9 Sep 1992 20:40:09 GMT
- Lines: 17
-
-
- try following in .cshrc on SVR4
-
- set cwd=`pwd`# if home-directory is symbolic link
- set machname=`uname -n`
- set subprompt='$' # or what you like
- set prompt="${subprompt} ${machname} ($$) ${user} \! ${cwd}\
- ${subprompt} "
-
- result should be :
-
- $ myhost (864) myloginname 12 /home/myloginname
- $ _
-
- where 864 is the process-number of the csh
- 12 is the current event-number (omit \! if not supported by your csh)
-
-