Migrate from zsh to fish
This commit is contained in:
12
modules/home/fish/last-working-dir.fish
Normal file
12
modules/home/fish/last-working-dir.fish
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
||||
|
||||
function __onpwd --on-variable PWD
|
||||
set --universal LAST_WORKING_DIR $PWD
|
||||
end
|
||||
# __onpwd
|
Reference in New Issue
Block a user