aboutsummaryrefslogtreecommitdiffstats
path: root/misc/quitcd
diff options
context:
space:
mode:
authorGravatar Pavel Fokin <fokinpv@gmail.com>2019-07-09 22:51:25 +0300
committerGravatar Pavel Fokin <fokinpv@gmail.com>2019-07-09 22:51:25 +0300
commit17bb57263cd9dcb017bd8c434a7e41f4af1bb459 (patch)
tree9f0cea09ed9f7aa333bf4504015343f1b30bd7c5 /misc/quitcd
parentd03ff4dc916dc8fe35c92f008aa64f6ebf7dd71e (diff)
downloadnnn-17bb57263cd9dcb017bd8c434a7e41f4af1bb459.tar.gz
Add forgotten export for quitcd scripts
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 "$@"