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
This commit is contained in:
Michael Robinson 2015-01-09 08:33:51 +13:00 committed by Michael Robinson
parent 550ccca91c
commit 8ccfc3d444

View file

@ -5,7 +5,7 @@
# Flag indicating if we've previously jumped to last directory. # Flag indicating if we've previously jumped to last directory.
typeset -g ZSH_LAST_WORKING_DIRECTORY typeset -g ZSH_LAST_WORKING_DIRECTORY
mkdir -p $ZSH_CACHE_DIR 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. # Updates the last directory once directory is changed.
function chpwd() { function chpwd() {