From 4efe2baf37e7af665902d45728957c438c245192 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sat, 30 Jul 2022 10:24:17 +0800 Subject: [PATCH] fix: report error if last_cwd was deleted --- cli/fish/config.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/fish/config.fish b/cli/fish/config.fish index 3f00e68..d0c404d 100644 --- a/cli/fish/config.fish +++ b/cli/fish/config.fish @@ -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