Explorar el Código

Wrap cd of pwdfile in quotes

Thomas Dy hace 9 años
padre
commit
d263faf99d
Se han modificado 1 ficheros con 1 adiciones y 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