Bash Prompt - display correct $(pwd)
When I use $(pwd) in my PS1, whatever the current working dir, the prompt always displays /home/username. However, when I use the \w, I always get the ~ tilde indicating the home dir. Is there a way to get the prompt to indicate that the home dir is /home/username, but always update to display the correct cwd in the prompt? Also, the \W (as opposed to the lowercase \w) doesn't give the whole cwd. Thanks.
Terry
|