diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-12-19 18:33:27 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-12-19 18:33:27 +0530 |
commit | c24efdbedbd3325e2a890810830f84fd3979d851 (patch) | |
tree | 611f14707d94cfb51b47009aa1bb1c51927b46ea /misc/quitcd/quitcd.zsh | |
parent | cf388649b9cd6fba38b9c0dca49c29bad3b6f737 (diff) | |
download | nnn-c24efdbedbd3325e2a890810830f84fd3979d851.tar.gz |
Simplify QuitCD scripts
Diffstat (limited to 'misc/quitcd/quitcd.zsh')
-rw-r--r-- | misc/quitcd/quitcd.zsh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/quitcd/quitcd.zsh b/misc/quitcd/quitcd.zsh index 43908db..203e613 100644 --- a/misc/quitcd/quitcd.zsh +++ b/misc/quitcd/quitcd.zsh @@ -7,7 +7,8 @@ n () 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" @@ -15,6 +16,7 @@ n () # stty start undef # stty stop undef # stty lwrap undef + # stty lnext undef nnn "$@" |