nnn/misc/quitcd/quitcd.fish
2017-06-06 21:01:28 +05:30

11 lines
229 B
Fish

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