My build of nnn with minor changes
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

36 lines
1.0 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[use access time]'
  12. '(-b)-b[bookmark key to open]:key char'
  13. '(-c)-c[cli-only opener]'
  14. '(-d)-d[start in detail mode]'
  15. '(-E)-E[use EDITOR for undetached edits]'
  16. '(-g)-g[regex filters]'
  17. '(-H)-H[show hidden files]'
  18. '(-K)-K[detect key collision]'
  19. '(-n)-n[start in navigate-as-you-type mode]'
  20. '(-o)-o[open files only on Enter]'
  21. '(-p)-p[copy selection to file]:file name'
  22. '(-Q)-Q[disable quit confirmation]'
  23. '(-r)-r[show cp, mv progress (Linux-only)]'
  24. '(-R)-R[disable rollover at edges]'
  25. '(-s)-s[load session]:session name'
  26. '(-S)-S[start in disk usage analyzer mode]'
  27. '(-t)-t[disable dir auto-select]'
  28. '(-v)-v[show program version and exit]'
  29. '(-V)-V[use version compare to sort files]'
  30. '(-x)-x[notis, sel to system clipboard]'
  31. '(-h)-h[show program help]'
  32. '*:filename:_files'
  33. )
  34. _arguments -S -s $args