diff options
Diffstat (limited to 'scripts/quitcd/quitcd.bash')
-rw-r--r-- | scripts/quitcd/quitcd.bash | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/quitcd/quitcd.bash b/scripts/quitcd/quitcd.bash index a4482e4..85b028a 100644 --- a/scripts/quitcd/quitcd.bash +++ b/scripts/quitcd/quitcd.bash @@ -1,11 +1,11 @@ -export NNN_TMPFILE="/tmp/nnn" - n() { - nnn "$@" + nnn "$@" + + NNN_TMPFILE=~/.config/nnn/.lastd - if [ -f $NNN_TMPFILE ]; then - . $NNN_TMPFILE - rm -f $NNN_TMPFILE > /dev/null - fi + if [ -f $NNN_TMPFILE ]; then + . $NNN_TMPFILE + rm -f $NNN_TMPFILE > /dev/null + fi } |