fish: fix last-working-dir function

This commit is contained in:
2024-03-19 09:09:11 +01:00
parent b35c87b4d6
commit 915a821e12
2 changed files with 9 additions and 22 deletions

View File

@ -1,7 +1,3 @@
if status --is-interactive; and test -d $LAST_WORKING_DIR; and test $PWD = $HOME
cd $LAST_WORKING_DIR
end
function lwd
cd $LAST_WORKING_DIR
end
@ -9,4 +5,3 @@ end
function __onpwd --on-variable PWD
set --universal LAST_WORKING_DIR $PWD
end
# __onpwd