nnn/scripts/quitcd/quitcd.fish
Arun Prakash Jana fa4f082ac0
Move cd on quit file
The new location is ~/.config/nnn/.lastd
2019-06-07 21:58:45 +05:30

15 lines
362 B
Fish

# Rename this file to match the name of the function
# e.g. ~/.config/fish/functions/n.fish
# or, add the lines to the 'config.fish' file.
function n --description 'support nnn quit and change directory'
nnn $argv
set NNN_TMPFILE ~/.config/nnn/.lastd
if test -e $NNN_TMPFILE
source $NNN_TMPFILE
rm $NNN_TMPFILE
end
end