zsh: use initial directory rather than $HOME
This commit is contained in:
parent
955f1f4e90
commit
fe53d9a25c
1 changed files with 2 additions and 1 deletions
3
.zshrc
3
.zshrc
|
@ -208,8 +208,9 @@ load_working_dir() {
|
|||
fi
|
||||
}
|
||||
|
||||
SWD_INITIAL_WORKING_DIR="$(pwd)"
|
||||
save_working_dir() {
|
||||
if [ "$(pwd)" != "$HOME" ];then
|
||||
if [ "$(pwd)" != "$SWD_INITIAL_WORKING_DIR" ]; then
|
||||
pwd > "$WORKING_DIR_SAVE_FILE"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue