diff options
author | Pavel Fokin <fokinpv@gmail.com> | 2019-07-09 22:51:25 +0300 |
---|---|---|
committer | Pavel Fokin <fokinpv@gmail.com> | 2019-07-09 22:51:25 +0300 |
commit | 17bb57263cd9dcb017bd8c434a7e41f4af1bb459 (patch) | |
tree | 9f0cea09ed9f7aa333bf4504015343f1b30bd7c5 /misc/quitcd | |
parent | d03ff4dc916dc8fe35c92f008aa64f6ebf7dd71e (diff) | |
download | nnn-17bb57263cd9dcb017bd8c434a7e41f4af1bb459.tar.gz |
Add forgotten export for quitcd scripts
Diffstat (limited to 'misc/quitcd')
-rw-r--r-- | misc/quitcd/quitcd.bash | 2 | ||||
-rw-r--r-- | misc/quitcd/quitcd.fish | 2 | ||||
-rw-r--r-- | misc/quitcd/quitcd.zsh | 2 |
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 "$@" |