nnn/misc/quitcd/quitcd.zsh

16 lines
255 B
Bash
Raw Normal View History

2017-04-19 18:22:30 +05:30
export NNN_TMPFILE="/tmp/nnn"
n()
{
2017-04-29 12:09:26 +05:30
if [ -n "$1" ]; then
nnn -d "$1"
else
nnn -d
fi
2017-04-19 18:22:30 +05:30
if [ -f $NNN_TMPFILE ]; then
. $NNN_TMPFILE
rm $NNN_TMPFILE
fi
}