nnn/misc/quitcd/quitcd.zsh
2019-06-17 07:04:42 +05:30

12 lines
179 B
Bash

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