diff options
Diffstat (limited to 'scripts/quitcd/quitcd.zsh')
-rw-r--r-- | scripts/quitcd/quitcd.zsh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/quitcd/quitcd.zsh b/scripts/quitcd/quitcd.zsh index dc83b23..79f5a03 100644 --- a/scripts/quitcd/quitcd.zsh +++ b/scripts/quitcd/quitcd.zsh @@ -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 $NNN_TMPFILE - fi + if [ -f $NNN_TMPFILE ]; then + . $NNN_TMPFILE + rm $NNN_TMPFILE + fi } |