nnn/misc/quitcd/quitcd.zsh

11 lines
165 B
Bash
Raw Normal View History

2017-04-19 12:52:30 +00:00
export NNN_TMPFILE="/tmp/nnn"
n()
{
nnn -d
if [ -f $NNN_TMPFILE ]; then
. $NNN_TMPFILE
rm $NNN_TMPFILE
fi
}