how to make bash display username, hostname and current working directory

December 23rd, 2008
Just add the following line:

PS1="\u@\h:\w$ "

in your .profile or .bashrc.

Leave a Reply