nnn/misc/quitcd/quitcd.bash

12 lines
194 B
Bash
Raw Normal View History

2017-04-19 18:22:30 +05:30
n()
{
nnn "$@"
2019-06-09 10:36:35 +05:30
NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
2017-04-29 12:09:26 +05:30
if [ -f $NNN_TMPFILE ]; then
. $NNN_TMPFILE
rm -f $NNN_TMPFILE > /dev/null
fi
2017-04-19 18:22:30 +05:30
}