Bugfix: evaluate home dir character as a string
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ rewrite_pwd()
|
||||
|
||||
pwdmaxlen=$(( ( pwdmaxlen < ${#dir} ) ? ${#dir} : pwdmaxlen ))
|
||||
|
||||
NEW_PWD=${PWD/$HOME/~}
|
||||
NEW_PWD=${PWD/$HOME/"~"}
|
||||
|
||||
local pwdoffset=$(( ${#NEW_PWD} - pwdmaxlen ))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user