My build of nnn with minor changes
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213
  1. # Rename this file to match the name of the function
  2. # e.g. ~/.config/fish/functions/n.fish
  3. export NNN_TMPFILE="/tmp/nnn"
  4. function n --description 'support nnn quit and change directory'
  5. nnn $argv
  6. if test -e $NNN_TMPFILE
  7. source $NNN_TMPFILE
  8. rm $NNN_TMPFILE
  9. end
  10. end