completions.zsh 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. {-a,--all}"[Show hidden and 'dot' files]" \
  17. {-d,--list-dirs}"[List directories like regular files]" \
  18. {-L,--level}"+[Limit the depth of recursion]" \
  19. {-r,--reverse}"[Reverse the sort order]" \
  20. {-s,--sort}"[Which field to sort by]:(sort field):(accessed created extension Extension filename Filename inode modified name Name none size type)" \
  21. {-I,--ignore-glob}"[Ignore files that match these glob patterns]" \
  22. {-b,--binary}"[List file sizes with binary prefixes]" \
  23. {-B,--bytes}"[List file sizes in bytes, without any prefixes]" \
  24. {-g,--group}"[List each file's group]" \
  25. {-h,--header}"[Add a header row to each column]" \
  26. {-H,--links}"[List each file's number of hard links]" \
  27. {-i,--inode}"[List each file's inode number]" \
  28. {-m,--modified}"[Use the modified timestamp field]" \
  29. {-S,--blocks}"[List each file's number of filesystem blocks]" \
  30. {-t,--time}"[Which time field to show]:(time field):(accessed created modified)" \
  31. --time-style"[How to format timestamps]:(time style):(default iso long-iso full-iso)" \
  32. {-u,--accessed}"[Use the accessed timestamp field]" \
  33. {-U,--created}"[Use the created timestamp field]" \
  34. --git"[List each file's Git status, if tracked]" \
  35. {-@,--extended}"[List each file's extended attributes and sizes]" \
  36. '*:filename:_files'
  37. }
  38. __exa