Add forgotten export for quitcd scripts

This commit is contained in:
Pavel Fokin 2019-07-09 22:51:25 +03:00
parent d03ff4dc91
commit 17bb57263c
3 changed files with 3 additions and 3 deletions

View file

@ -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 "$@"

View file

@ -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

View file

@ -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 "$@"