nnn/scripts/quitcd/quitcd.zsh
2019-06-09 10:36:35 +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
}