Преглед изворни кода

Wrap cd of pwdfile in quotes

Thomas Dy пре 9 година
родитељ
комит
d263faf99d
1 измењених фајлова са 1 додато и 1 уклоњено
  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