1# NOTE: set NNN_TMPFILE correctly if you use 'XDG_CONFIG_HOME' 2 3# The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set) 4# To cd on quit only on ^G, export NNN_TMPFILE after the call to nnn 5set NNN_TMPFILE=~/.config/nnn/.lastd 6 7# Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn 8# stty start undef 9# stty stop undef 10# stty lwrap undef 11# stty lnext undef 12 13alias n 'nnn; source "$NNN_TMPFILE"; rm -f "$NNN_TMPFILE"' 14