Explorar o código

Wrap cd of pwdfile in quotes

Thomas Dy %!s(int64=9) %!d(string=hai) anos
pai
achega
d263faf99d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .zsh/pwdfile.zsh

+ 1 - 1
.zsh/pwdfile.zsh

@@ -13,6 +13,6 @@ if [[ -x $(which xdotool 2> /dev/null) ]] && [[ -n "$DISPLAY" ]] then
   if [[ $ACTIVEWIN -le 1 ]]; then
       chpwd
   else
-      cd $(cat $PWDFILE)
+      cd "$(cat $PWDFILE)"
   fi
 fi