Show working directory in bash prompt
Posted on March 28, 2008
Filed Under Linux |
I always get confused with which directory I’m working under. The solution I found is to display the working directory in the bash prompt. This is the single line that does the magic in the ~/.bashrc
1 | PS1=[\\w]\\$ |
Leave a Reply