aboutsummaryrefslogtreecommitdiffstats
path: root/misc/quitcd/quitcd.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'misc/quitcd/quitcd.zsh')
-rw-r--r--misc/quitcd/quitcd.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/quitcd/quitcd.zsh b/misc/quitcd/quitcd.zsh
index 24860ac..207aa56 100644
--- a/misc/quitcd/quitcd.zsh
+++ b/misc/quitcd/quitcd.zsh
@@ -1,9 +1,9 @@
n()
{
- nnn "$@"
-
NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
+ nnn "$@"
+
if [ -f $NNN_TMPFILE ]; then
. $NNN_TMPFILE
rm $NNN_TMPFILE