[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CWD in my prompt
- To: Mattias Holmström <jmeholm_(_at_)_skebo_(_dot_)_ac>
- Subject: Re: CWD in my prompt
- From: Andrés Sánchez <Andres_(_dot_)_Sanchez_(_at_)_globaltekltd_(_dot_)_com>
- Date: Wed, 15 Jan 2003 16:16:26 -0400
- Cc: <misc_(_at_)_openbsd_(_dot_)_org>
- Thread-index: AcK80kzIh7wBFHcORAqMJy4TU346CQAAFz4A
- Thread-topic: CWD in my prompt
I've got the following on my .cshrc:
if ($?prompt) then
alias setprompt 'set prompt = "`whoami`_(_at_)_`hostname -s`:`pwd`% "'
setprompt
alias cd 'cd \!*;setprompt;'
alias pushd 'pushd \!*;setprompt'
alias popd 'popd \!*;setprompt'
endif
You might substitute the "`whoami`_(_at_)_`hostname -s`:`pwd`% " to "`whoami`_(_at_)_`hostname -s` `pwd`> "'
-----Original Message-----
From: Mattias Holmström [mailto:jmeholm_(_at_)_skebo_(_dot_)_ac]
Sent: Wednesday, January 15, 2003 4:02 PM
To: misc_(_at_)_openbsd_(_dot_)_org
Subject: CWD in my prompt
I have tried to put CWD into the my prompt but the CWD isnt changed when I change DIR This is the command line I used to set my prompt.
set prompt="$user_(_at_)_$HOST $cwd >
I cant spell or explain very good in english so here comes one more try for those who didnt understand the one above. I have set my prompt to for example...
root_(_at_)_mudserver /root >
I set this by useing this command with command line parameters...
set prompt="$user_(_at_)_$HOST $cwd >
The problem is that when I change from /root to / the last section in my prompt isnt updated so it stays /root instead of beeing / How can I fix this? I really want it to update properly. I use tcsh shell if that helps...
MvH Mattias(Sweden)
Visit your host, monkey.org