My build of nnn with minor changes
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

45 wiersze
1.3 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. '(-C)-C[color by context]'
  16. '(-d)-d[start in detail mode]'
  17. '(-e)-e[open text files in $VISUAL/$EDITOR/vi]'
  18. '(-E)-E[use EDITOR for undetached edits]'
  19. '(-f)-f[use readline history file]'
  20. '(-F)-F[show fortune]'
  21. '(-g)-g[regex filters]'
  22. '(-H)-H[show hidden files]'
  23. '(-K)-K[detect key collision]'
  24. '(-l)-l[lines to move per scroll]:val'
  25. '(-n)-n[start in type-to-nav mode]'
  26. '(-o)-o[open files only on Enter]'
  27. '(-p)-p[copy selection to file]:file name'
  28. '(-P)-P[plugin key to runn]:key char'
  29. '(-Q)-Q[disable quit confirmation]'
  30. '(-r)-r[show cp, mv progress (Linux-only)]'
  31. '(-R)-R[disable rollover at edges]'
  32. '(-s)-s[load session]:session name'
  33. '(-S)-S[persistent session]'
  34. '(-t)-t[timeout to lock]:seconds'
  35. '(-T)-T[a d e r s t v]:key'
  36. '(-u)-u[use selection (no prompt)]'
  37. '(-V)-V[show program version and exit]'
  38. '(-w)-C[hardware cursor mode]'
  39. '(-x)-x[notis, sel to system clipboard]'
  40. '(-h)-h[show program help]'
  41. '*:filename:_files'
  42. )
  43. _arguments -S -s $args