From cddfc3b038d821ddb6d0e81410675ffaeb11cac9 Mon Sep 17 00:00:00 2001 From: "xiao.fan" Date: Tue, 4 Aug 2015 15:07:47 -0700 Subject: style fixes --- plugins/last-working-dir/last-working-dir.plugin.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/last-working-dir') diff --git a/plugins/last-working-dir/last-working-dir.plugin.zsh b/plugins/last-working-dir/last-working-dir.plugin.zsh index 708ae4f74..c458464ce 100644 --- a/plugins/last-working-dir/last-working-dir.plugin.zsh +++ b/plugins/last-working-dir/last-working-dir.plugin.zsh @@ -8,8 +8,7 @@ mkdir -p $ZSH_CACHE_DIR cache_file="$ZSH_CACHE_DIR/last-working-dir" # Updates the last directory once directory is changed. -typeset -ga chpwd_functions -chpwd_functions+='chpwd_last_working_dir' +chpwd_functions+=(chpwd_last_working_dir) function chpwd_last_working_dir() { # Use >| in case noclobber is set to avoid "file exists" error pwd >| "$cache_file" -- cgit v1.2.3-70-g09d2