nnn/scripts/quitcd/quitcd.fish
2017-09-02 11:15:10 +05:30

11 lines
226 B
Fish

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