aboutsummaryrefslogtreecommitdiffstats
path: root/misc/quitcd/quitcd.fish
diff options
context:
space:
mode:
Diffstat (limited to 'misc/quitcd/quitcd.fish')
-rw-r--r--misc/quitcd/quitcd.fish4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/quitcd/quitcd.fish b/misc/quitcd/quitcd.fish
index 5b9cd62..ea6a1bd 100644
--- a/misc/quitcd/quitcd.fish
+++ b/misc/quitcd/quitcd.fish
@@ -10,7 +10,8 @@ function n --description 'support nnn quit and change directory'
end
# The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set)
- # To cd on quit only on ^G, export NNN_TMPFILE after the call to nnn
+ # To cd on quit only on ^G, remove the "-x" as in:
+ # set NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
# NOTE: NNN_TMPFILE is fixed, should not be modified
if test -n "$XDG_CONFIG_HOME"
set -x NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
@@ -22,6 +23,7 @@ function n --description 'support nnn quit and change directory'
# stty start undef
# stty stop undef
# stty lwrap undef
+ # stty lnext undef
nnn $argv