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

123456789101112131415
  1. # Rename this file to match the name of the function
  2. # e.g. ~/.config/fish/functions/n.fish
  3. # or, add the lines to the 'config.fish' file.
  4. function n --description 'support nnn quit and change directory'
  5. # NOTE: set NNN_TMPFILE correctly if you use 'XDG_CONFIG_HOME'
  6. set NNN_TMPFILE ~/.config/nnn/.lastd
  7. nnn $argv
  8. if test -e $NNN_TMPFILE
  9. source $NNN_TMPFILE
  10. rm $NNN_TMPFILE
  11. end
  12. end