sistema_progs

Programas para customizar o meu entorno de traballo nos meus equipos persoais
Log | Files | Refs

quitcd.csh (504B)


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