fix(last-working-dir): use builtin `pwd` (#11346)

master
Richard Mitchell 4 years ago committed by GitHub
parent 9697673616
commit fe83581a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      plugins/last-working-dir/last-working-dir.plugin.zsh

@ -9,7 +9,7 @@ chpwd_last_working_dir() {
[[ "$ZSH_SUBSHELL" -eq 0 ]] || return 0
# Add ".$SSH_USER" suffix to cache file if $SSH_USER is set and non-empty
local cache_file="$ZSH_CACHE_DIR/last-working-dir${SSH_USER:+.$SSH_USER}"
pwd >| "$cache_file"
builtin pwd >| "$cache_file"
}
# Changes directory to the last working directory

Loading…
Cancel
Save