|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
Modification of the shell prompt
I want to modify the shell prompt in I assume bash to always show the complete current path like DOS does. I used to work in UNIX many years ago and I know we were able to do this but it was an obscure task. Is it possible in LINUX RH7.1
here is an example of what I am looking for DOS C:\windows\program files\My Documents\ LINUX [user@servername usr/home/user/www]# I vaguely recall it was incorporating the pwd command in to the format of the prompt itself Please let me know Jeff |
|
#2
|
||||
|
||||
|
You have to set PS1 env var from you .bashrc or .profile. You need to incorporate special "vars" because if you use pwd it will always return the same thing regardless of the directory you're in. Read the man page and make a search for PS1 (a few actually).
__________________
Words must be weighed, not counted. |
|
#3
|
||||
|
||||
|
Helpful links
__________________
Two things have come out of Berkeley, Unix and LSD. It is uncertain which caused the other. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > Modification of the shell prompt |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|