My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

quitcd.bash 354 B

il y a 7 ans
12345678910111213
  1. n()
  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
  5. export NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
  6. nnn "$@"
  7. if [ -f $NNN_TMPFILE ]; then
  8. . $NNN_TMPFILE
  9. rm -f $NNN_TMPFILE > /dev/null
  10. fi
  11. }