Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

"$PWD" = "PWD", >! doesn't work, echo is redundant. Fixed all.

  • Loading branch information...
commit 58a6ed1eac57d3faf082070c21bc9770da90a044 1 parent 989b6ec
@Bercio Bercio authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/last-working-dir/last-working-dir.plugin.zsh
View
4 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.
Please sign in to comment.
Something went wrong with that request. Please try again.