nnn/misc/quitcd/quitcd.fish
2017-04-20 17:33:54 +05:30

10 lines
222 B
Fish

export NNN_TMPFILE="/tmp/nnn"
function n --description 'support nnn quit and change directory'
nnn -d
if test -e $NNN_TMPFILE
. $NNN_TMPFILE
rm $NNN_TMPFILE
end
end