diff options
author | Bercio <lorenzo233@gmail.com> | 2013-04-08 18:45:45 +0800 |
---|---|---|
committer | Bercio <lorenzo233@gmail.com> | 2013-04-08 18:45:45 +0800 |
commit | 58a6ed1eac57d3faf082070c21bc9770da90a044 (patch) | |
tree | f7eb49126797dd7063ede7e261d570288a15177d /plugins | |
parent | 989b6ec29eb523424ea4ec701068789878e62400 (diff) | |
download | zsh-58a6ed1eac57d3faf082070c21bc9770da90a044.tar.gz zsh-58a6ed1eac57d3faf082070c21bc9770da90a044.tar.bz2 zsh-58a6ed1eac57d3faf082070c21bc9770da90a044.zip |
"$PWD" = "PWD", >! doesn't work, echo is redundant. Fixed all.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/last-working-dir/last-working-dir.plugin.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/last-working-dir/last-working-dir.plugin.zsh b/plugins/last-working-dir/last-working-dir.plugin.zsh index ccf0f5b22..bc36c80db 100644 --- a/plugins/last-working-dir/last-working-dir.plugin.zsh +++ b/plugins/last-working-dir/last-working-dir.plugin.zsh @@ -9,8 +9,8 @@ local cache_file="$ZSH/cache/last-working-dir" # Updates the last directory once directory is changed. function chpwd() { - # Use >! in case noclobber is set to avoid "file exists" error - echo "$PWD" >! "$cache_file" + # Use >| in case noclobber is set to avoid "file exists" error + pwd >| "$cache_file" } # Changes directory to the last working directory. |