fix: report error if last_cwd was deleted

This commit is contained in:
Klesh Wong 2022-07-30 10:24:17 +08:00
parent 6cd237d7a7
commit 4efe2baf37

View File

@ -79,7 +79,7 @@ if status is-interactive
~/.profile.fish
# === auto cd into last activated directory
test "$PWD" = "$HOME" && cd $last_pwd
test "$PWD" = "$HOME" && test -d $last_pwd && cd $last_pwd
function loadenv
while read -l line