zsh: save_working_directory() will no longer save the home directory
This commit is contained in:
parent
eaf0f0f84b
commit
4a7b6c465c
1 changed files with 3 additions and 1 deletions
4
.zshrc
4
.zshrc
|
@ -800,7 +800,9 @@ load_working_dir() {
|
|||
}
|
||||
|
||||
save_working_dir() {
|
||||
pwd > "$WORKING_DIR_SAVE_FILE"
|
||||
if [ "$(pwd)" != "$HOME" ];then
|
||||
pwd > "$WORKING_DIR_SAVE_FILE"
|
||||
fi
|
||||
}
|
||||
|
||||
autoload -U add-zsh-hook
|
||||
|
|
Loading…
Add table
Reference in a new issue