diff --git a/bash/.bashrc b/bash/.bashrc index 4f1adf1..8c3df15 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -31,8 +31,10 @@ __prompt() { *) PS1='\[\e[31m\]' ;; esac - if [[ "$PWD" = "$HOME" ]]; then + if [[ "$PWD" == "$HOME" ]]; then PS1+='~' + elif [[ "$PWD" == / ]]; then + PS1+=/ else PS1+="${PWD##*/}" fi