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]\\$

Comments

Leave a Reply




  • About

    This is an area on your website where you can add text. This will serve as an informative location on your website, where you can talk about your site.