diff --git a/.bash/prompt b/.bash/prompt index 8bf82ba..04af722 100644 --- a/.bash/prompt +++ b/.bash/prompt @@ -20,7 +20,7 @@ rewrite_pwd() pwdmaxlen=$(( ( pwdmaxlen < ${#dir} ) ? ${#dir} : pwdmaxlen )) - NEW_PWD=${PWD/$HOME/~} + NEW_PWD=${PWD/$HOME/"~"} local pwdoffset=$(( ${#NEW_PWD} - pwdmaxlen ))