completions.zsh 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #compdef exa
  2. __exa() {
  3. _arguments \
  4. "(- 1 *)"{-v,--version}"[Show version of exa]" \
  5. "(- 1 *)"{-\?,--help}"[Show list of command-line options]" \
  6. {-1,--oneline}"[Display one entry per line]" \
  7. {-l,--long}"[Display extended file metadata as a table]" \
  8. {-G,--grid}"[Display entries as a grid]" \
  9. {-x,--across}"[Sort the grid across, rather than downwards]" \
  10. {-R,--recurse}"[Recurse into directories]" \
  11. {-T,--tree}"[Recurse into directories as a tree]" \
  12. {-F,--classify}"[Display type indicator by file names]" \
  13. {--color,--colour}"[When to use terminal colours]" \
  14. {--color,--colour}-scale"[Highlight levels of file sizes distinctly]" \
  15. --group-directories-first"[Sort directories before other files]" \
  16. --git-ignore"[Ignore files mentioned in '.gitignore']" \
  17. {-a,--all}"[Show hidden and 'dot' files]" \
  18. {-d,--list-dirs}"[List directories like regular files]" \
  19. {-L,--level}"+[Limit the depth of recursion]" \
  20. {-r,--reverse}"[Reverse the sort order]" \
  21. {-s,--sort}"[Which field to sort by]:(sort field):(accessed age created date extension Extension filename Filename inode modified oldest name Name newest none size time type)" \
  22. {-I,--ignore-glob}"[Ignore files that match these glob patterns]" \
  23. {-b,--binary}"[List file sizes with binary prefixes]" \
  24. {-B,--bytes}"[List file sizes in bytes, without any prefixes]" \
  25. {-g,--group}"[List each file's group]" \
  26. {-h,--header}"[Add a header row to each column]" \
  27. {-H,--links}"[List each file's number of hard links]" \
  28. {-i,--inode}"[List each file's inode number]" \
  29. {-m,--modified}"[Use the modified timestamp field]" \
  30. {-S,--blocks}"[List each file's number of filesystem blocks]" \
  31. {-t,--time}"[Which time field to show]:(time field):(accessed created modified)" \
  32. --time-style"[How to format timestamps]:(time style):(default iso long-iso full-iso)" \
  33. {-u,--accessed}"[Use the accessed timestamp field]" \
  34. {-U,--created}"[Use the created timestamp field]" \
  35. --git"[List each file's Git status, if tracked]" \
  36. {-@,--extended}"[List each file's extended attributes and sizes]" \
  37. '*:filename:_files'
  38. }
  39. __exa