I modified my .bashrc file with a: PS1="ei:~ >" but when I cd around it doesn't tell me which folder I am in anymore, how can I fix that? Cheers, ei -- @~~ EagleIce ~ gnu4u@linux.nu ~~@ @~~ Running GNU/Linux & KDE ~~@
Mine is \u@\h:\w > (User@Host:Working_directory) Substitute your ~ with \w onsdag 31 januari 2001 12:03 skrev du:
I modified my .bashrc file with a: PS1="ei:~ >" but when I cd around it doesn't tell me which folder I am in anymore, how can I fix that?
Cheers,
ei
EagleIce wrote:
I modified my .bashrc file with a: PS1="ei:~ >" but when I cd around it doesn't tell me which folder I am in anymore, how can I fix that?
I think what you want is: PS1="\u:\w >" The \u inserts the current user name, and the \w inserts the current working directory. See 'man bash' for more details. Bye, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\
On Wed, 31 Jan 2001 12:03:54 +0100, EagleIce said: | I modified my .bashrc file with a: | PS1="ei:~ >" | but when I cd around it doesn't tell me which folder I am in anymore, how can | I fix that? | | Cheers, | | ei | Why don't you read the man pages? man bash -- Koos Pol
On Wednesday 31 January 2001 17:38, Koos Pol wrote:
On Wed, 31 Jan 2001 12:03:54 +0100, EagleIce said: | I modified my .bashrc file with a: | PS1="ei:~ >" | but when I cd around it doesn't tell me which folder I am in anymore, | how can I fix that? | | Cheers, | | ei
Why don't you read the man pages? man bash I didn't say anything about me not having read the man pages!
Cheers, ei -- @~~ EagleIce ~ gnu4u@linux.nu ~~@ @~~ Running GNU/Linux & KDE ~~@
participants (4)
-
Anders Dahlqvist
-
Chris Reeves
-
EagleIce
-
Koos Pol