浏览代码

Removing 'local' usage to prevent issue when installed with antigen

Error encountered when installed with antigen: "chpwd:2: no such file or directory:".  Solution described in https://github.com/zsh-users/antigen/issues/75
Michael Robinson 10 年之前
父节点
当前提交
8ccfc3d444
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/last-working-dir/last-working-dir.plugin.zsh

+ 1 - 1
plugins/last-working-dir/last-working-dir.plugin.zsh

@@ -5,7 +5,7 @@
 # Flag indicating if we've previously jumped to last directory.
 typeset -g ZSH_LAST_WORKING_DIRECTORY
 mkdir -p $ZSH_CACHE_DIR
-local cache_file="$ZSH_CACHE_DIR/last-working-dir"
+cache_file="$ZSH_CACHE_DIR/last-working-dir"
 
 # Updates the last directory once directory is changed.
 function chpwd() {