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

16 lines
249 B
Bash

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