nnn/scripts/quitcd/quitcd.bash
2019-06-09 10:36:35 +05:30

12 lines
194 B
Bash

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