nnn/misc/quitcd/quitcd.bash
Arun Prakash Jana bac4c27191
Update scripts
2017-04-29 19:20:00 +05:30

16 lines
255 B
Bash

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