浏览代码

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