Showing full path in Terminal.
Here I am again! Sorry, sorry! :-)
How can I show full path prompt in Terminal? Now, I always see bash-3.1$ as the prompt. I know I could use pwd to check where I am standing at a certain moment but it would be easier if I could always see the full path at the command prompt. Thank you! Glore 2002.- |
You want to use the "\w" flag in your PS1 environment variable. For example, in my .bashrc I have
export PS1='\u@\h:\w\$ ', where \u is for username, \h for hostname and \$ for the prompt symbol ($ for regular user, # for root). Edit: you may like to look at this. |
Thank Nylex!
Thanks Nylex for your help. I already changed my prompt with your explanation. Now, it looks much better and self explanatory.
Glore2002.- |
Personally, I like to add colors and newlines to mine so that they are more readable. For some I change the title bars as well.
You can also vary what you get depending upon what terminal you are using (screen session, xterm, std console, etc). Here's a snippet Code:
case "$TERM" in |
All times are GMT -5. The time now is 06:27 PM. |