My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
505 B

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