Prompt
My Prompt somehow changed to "bash-2.05$", I did once have it as "[Atroxic@blah folder]". How do I change it back?
|
edit your .bash_profile file with this line:
PS1="(/u@/W):" the prompt will look more lik this then : (user@workingdir): |
Thanks, but where do I find the file? What directory?
|
it's in your home dir ie /home/<username>
it's a hidden file so you cant see it with ls, you'll have to do ls -al to see hidden files. |
the actual preoper pattern you should use is:
PS1='[\u@\h \W]\$ ' |
oops!sorry bout that,blue is right! \ instead of /...
type from anywhere vi ~/.bash_profile. add the ps1 line to the bottom. it's also usually better to use double quotations instead od single, because when you start adding options and variables to the prompt bash gets easily confused with single quotes. |
All times are GMT -5. The time now is 12:23 AM. |