fi
# 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 "export" as in:
+ # NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd"
# NOTE: NNN_TMPFILE is fixed, should not be modified
export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd"
# stty start undef
# stty stop undef
# stty lwrap undef
+ # stty lnext undef
nnn "$@"
# stty start undef
# stty stop undef
# stty lwrap undef
+# stty lnext undef
alias n 'nnn -fis; source "$NNN_TMPFILE"; rm -f "$NNN_TMPFILE"'
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"
# stty start undef
# stty stop undef
# stty lwrap undef
+ # stty lnext undef
nnn $argv
fi
# 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 "export" as in:
+ # NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd"
# NOTE: NNN_TMPFILE is fixed, should not be modified
export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd"
# stty start undef
# stty stop undef
# stty lwrap undef
+ # stty lnext undef
nnn "$@"