zsh: save_working_directory() will no longer save the home directory

This commit is contained in:
PowerUser64 2021-12-16 03:33:18 -08:00
parent eaf0f0f84b
commit 4a7b6c465c

4
.zshrc
View file

@ -800,7 +800,9 @@ load_working_dir() {
} }
save_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 autoload -U add-zsh-hook