aboutsummaryrefslogtreecommitdiffstats
path: root/misc/quitcd/quitcd.bash
diff options
context:
space:
mode:
Diffstat (limited to 'misc/quitcd/quitcd.bash')
-rw-r--r--misc/quitcd/quitcd.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/quitcd/quitcd.bash b/misc/quitcd/quitcd.bash
index 3f9f7fc..15b9f42 100644
--- a/misc/quitcd/quitcd.bash
+++ b/misc/quitcd/quitcd.bash
@@ -1,9 +1,9 @@
n()
{
- nnn "$@"
-
NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
+ nnn "$@"
+
if [ -f $NNN_TMPFILE ]; then
. $NNN_TMPFILE
rm -f $NNN_TMPFILE > /dev/null