diff options
author | Bercio <lorenzo233@gmail.com> | 2013-04-08 19:02:48 +0800 |
---|---|---|
committer | Bercio <lorenzo233@gmail.com> | 2013-04-08 19:02:48 +0800 |
commit | 6b6208e1416b5eb5aa5a032139d4b61f8939386b (patch) | |
tree | f7eb49126797dd7063ede7e261d570288a15177d /plugins | |
parent | 989b6ec29eb523424ea4ec701068789878e62400 (diff) | |
download | zsh-6b6208e1416b5eb5aa5a032139d4b61f8939386b.tar.gz zsh-6b6208e1416b5eb5aa5a032139d4b61f8939386b.tar.bz2 zsh-6b6208e1416b5eb5aa5a032139d4b61f8939386b.zip |
>! doesn't work with no clobber, 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. |