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

42 行
1.2 KiB

  1. #compdef nnn
  2. #
  3. # Completion definition for nnn.
  4. #
  5. # Author:
  6. # Arun Prakash Jana <engineerarun@gmail.com>
  7. #
  8. setopt localoptions noshwordsplit noksharrays
  9. local -a args
  10. args=(
  11. '(-a)-a[auto-create NNN_FIFO]'
  12. '(-A)-A[disable dir auto-select]'
  13. '(-b)-b[bookmark key to open]:key char'
  14. '(-c)-c[cli-only opener]'
  15. '(-d)-d[start in detail mode]'
  16. '(-e)-e[open text files in $VISUAL/$EDITOR/vi]'
  17. '(-E)-E[use EDITOR for undetached edits]'
  18. '(-f)-f[use readline history file]'
  19. '(-F)-F[show fortune]'
  20. '(-g)-g[regex filters]'
  21. '(-H)-H[show hidden files]'
  22. '(-K)-K[detect key collision]'
  23. '(-l)-l[lines to move per scroll]:val'
  24. '(-n)-n[start in type-to-nav mode]'
  25. '(-o)-o[open files only on Enter]'
  26. '(-p)-p[copy selection to file]:file name'
  27. '(-P)-P[plugin key to runn]:key char'
  28. '(-Q)-Q[disable quit confirmation]'
  29. '(-r)-r[show cp, mv progress (Linux-only)]'
  30. '(-R)-R[disable rollover at edges]'
  31. '(-s)-s[load session]:session name'
  32. '(-S)-S[persistent session]'
  33. '(-t)-t[timeout to lock]:seconds'
  34. '(-T)-T[a d e r s t v]:key'
  35. '(-V)-V[show program version and exit]'
  36. '(-x)-x[notis, sel to system clipboard]'
  37. '(-h)-h[show program help]'
  38. '*:filename:_files'
  39. )
  40. _arguments -S -s $args