nnn/scripts/quitcd/quitcd.zsh
2017-09-02 11:15:10 +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
}