diff options
Diffstat (limited to 'misc/quitcd/quitcd.zsh')
| -rw-r--r-- | misc/quitcd/quitcd.zsh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/quitcd/quitcd.zsh b/misc/quitcd/quitcd.zsh index c55b321..9259e4a 100644 --- a/misc/quitcd/quitcd.zsh +++ b/misc/quitcd/quitcd.zsh @@ -1,5 +1,7 @@ n() { + # 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 export NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd nnn "$@" |