mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
fix(last-working-dir): use builtin pwd (#11346)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user