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.
 
 
 
 
 
 

27 lines
723 B

  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. '(-b)-b[bookmark key to open]:key char'
  12. '(-d)-d[start in detail mode]'
  13. '(-e)-e[use exiftool instead of mediainfo]'
  14. '(-H)-H[show hidden files]'
  15. '(-i)-i[start in navigate-as-you-type mode]'
  16. '(-n)-n[use version compare to sort files]'
  17. '(-p)-p[copy selection to file]:file name'
  18. '(-s)-s[use substring match for filters]'
  19. '(-S)-S[start in disk usage analyzer mode]'
  20. '(-v)-v[show program version and exit]'
  21. '(-w)-w[wild load]'
  22. '(-h)-h[show program help]'
  23. '*:filename:_files'
  24. )
  25. _arguments -S -s $args