diff options
author | Robby Russell <robby@planetargon.com> | 2013-04-08 12:43:43 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-04-08 12:43:43 -0700 |
commit | 0198a12953ab92f5cc07ae464c34e3e37ab34d33 (patch) | |
tree | 8d3e4b60a3cfbc4a705862934bbb2691b6576a82 /plugins/last-working-dir | |
parent | 4300b63462c063fbb195de5557064dcaa2490387 (diff) | |
parent | 58a6ed1eac57d3faf082070c21bc9770da90a044 (diff) | |
download | zsh-0198a12953ab92f5cc07ae464c34e3e37ab34d33.tar.gz zsh-0198a12953ab92f5cc07ae464c34e3e37ab34d33.tar.bz2 zsh-0198a12953ab92f5cc07ae464c34e3e37ab34d33.zip |
Merge pull request #1699 from Bercio/patch-1
>! doesn't work with noclobber. changed >! to >| and echo "$PWD" to pwd(redundant)
Diffstat (limited to 'plugins/last-working-dir')
-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. |