My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233
  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[load session]:session name'
  16. '(-E)-E[use EDITOR for undetached edits]'
  17. '(-f)-f[run filter as cmd on prompt key]'
  18. '(-H)-H[show hidden files]'
  19. '(-i)-i[start in navigate-as-you-type mode]'
  20. '(-K)-K[detect key collision]'
  21. '(-n)-n[use version compare to sort files]'
  22. '(-o)-o[open files only on Enter]'
  23. '(-p)-p[copy selection to file]:file name'
  24. '(-r)-r[show cp, mv progress (Linux-only)]'
  25. '(-s)-s[use substring match for filters]'
  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. '(-h)-h[show program help]'
  30. '*:filename:_files'
  31. )
  32. _arguments -S -s $args