nnn/misc/quitcd/quitcd.fish

10 lines
222 B
Fish
Raw Normal View History

2017-04-19 12:52:30 +00:00
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