Pārlūkot izejas kodu

Wrap cd of pwdfile in quotes

Thomas Dy 9 gadi atpakaļ
vecāks
revīzija
d263faf99d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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