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

11 lines
165 B
Bash

export NNN_TMPFILE="/tmp/nnn"
n()
{
nnn -d
if [ -f $NNN_TMPFILE ]; then
. $NNN_TMPFILE
rm $NNN_TMPFILE
fi
}