nnn/misc/quitcd/quitcd.bash
2019-07-09 22:51:25 +03:00

12 lines
201 B
Bash

n()
{
export NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
nnn "$@"
if [ -f $NNN_TMPFILE ]; then
. $NNN_TMPFILE
rm -f $NNN_TMPFILE > /dev/null
fi
}