Unverified Commit fe83581a authored by Richard Mitchell's avatar Richard Mitchell Committed by GitHub

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

parent 96976736
...@@ -9,7 +9,7 @@ chpwd_last_working_dir() { ...@@ -9,7 +9,7 @@ chpwd_last_working_dir() {
[[ "$ZSH_SUBSHELL" -eq 0 ]] || return 0 [[ "$ZSH_SUBSHELL" -eq 0 ]] || return 0
# Add ".$SSH_USER" suffix to cache file if $SSH_USER is set and non-empty # 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}" 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 # Changes directory to the last working directory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment