nnn/misc/quitcd/quitcd.zsh
2017-06-30 05:27:25 +05:30

12 lines
168 B
Bash

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