1
0

completions.zsh 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. {-G,--grid}"[Display entries as a grid]" \
  8. {-l,--long}"[Display extended metadata as a table]" \
  9. {-R,--recurse}"[Recurse into directories]" \
  10. {-T,--tree}"[Recurse into directories as a tree]" \
  11. {-F,--classify}"[Display type indicator by file names]" \
  12. {--color,--colour}"[When to use terminal colours]" \
  13. {--color,--colour}-scale"[Highlight levels of file sizes distinctly]" \
  14. --group-directories-first"[Sort directories before other files]" \
  15. {-a,--all}"[Don't hide hidden and 'dot' files]" \
  16. {-d,--list-dirs}"[List directories like regular files]" \
  17. {-r,--reverse}"[Reverse the sort order]" \
  18. {-s,--sort}"[Which field to sort by]:(sort field):(accessed created extension Extension filename Filename inode modified name Name none size)" \
  19. {-I,--ignore-glob}"[Ignore files that match these glob patterns]" \
  20. {-b,--binary}"[Display file sizes with binary prefixes]" \
  21. {-B,--bytes}"[Display file sizes in bytes, without any prefixes]" \
  22. {-g,--group}"[Show each file's group]" \
  23. {-h,--header}"[Add a header row to each column]" \
  24. {-H,--links}"[Show each file's number of hard links]" \
  25. {-i,--inode}"[Show each file's inode number]" \
  26. {-L,--level}"+[Limit the depth of recursion]" \
  27. {-m,--modified}"[Use the modified timestamp field]" \
  28. {-S,--blocks}"[Show each file's number of filesystem blocks]" \
  29. {-t,--time}"[Which time field to show]:(time field):(accessed created modified)" \
  30. {-u,--accessed}"[Use the accessed timestamp field]" \
  31. {-U,--created}"[Use the created timestamp field]" \
  32. {-U,--created}"[Show each file's Git status, if tracked]" \
  33. {-@,--extended}"[Show each file's extended attributes and sizes]" \
  34. '*:filename:_files'
  35. }
  36. __exa