aboutsummaryrefslogtreecommitdiffstats
path: root/misc/quitcd
diff options
context:
space:
mode:
Diffstat (limited to 'misc/quitcd')
-rw-r--r--misc/quitcd/quitcd.bash2
-rw-r--r--misc/quitcd/quitcd.fish2
-rw-r--r--misc/quitcd/quitcd.zsh2
3 files changed, 3 insertions, 3 deletions
diff --git a/misc/quitcd/quitcd.bash b/misc/quitcd/quitcd.bash
index 15b9f42..e303b4c 100644
--- a/misc/quitcd/quitcd.bash
+++ b/misc/quitcd/quitcd.bash
@@ -1,6 +1,6 @@
n()
{
- NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
+ export NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
nnn "$@"
diff --git a/misc/quitcd/quitcd.fish b/misc/quitcd/quitcd.fish
index 7bc67fe..93a9e22 100644
--- a/misc/quitcd/quitcd.fish
+++ b/misc/quitcd/quitcd.fish
@@ -4,7 +4,7 @@
function n --description 'support nnn quit and change directory'
# NOTE: set NNN_TMPFILE correctly if you use 'XDG_CONFIG_HOME'
- set NNN_TMPFILE ~/.config/nnn/.lastd
+ set -x NNN_TMPFILE ~/.config/nnn/.lastd
nnn $argv
diff --git a/misc/quitcd/quitcd.zsh b/misc/quitcd/quitcd.zsh
index 207aa56..c55b321 100644
--- a/misc/quitcd/quitcd.zsh
+++ b/misc/quitcd/quitcd.zsh
@@ -1,6 +1,6 @@
n()
{
- NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
+ export NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
nnn "$@"