exa/contrib/completions.zsh

41 lines
2.2 KiB
Bash
Raw Normal View History

2017-05-06 19:50:24 +00:00
#compdef exa
__exa() {
_arguments \
"(- 1 *)"{-v,--version}"[Show version of exa]" \
"(- 1 *)"{-\?,--help}"[Show list of command-line options]" \
{-1,--oneline}"[Display one entry per line]" \
{-l,--long}"[Display extended file metadata as a table]" \
2017-05-06 19:50:24 +00:00
{-G,--grid}"[Display entries as a grid]" \
{-x,--across}"[Sort the grid across, rather than downwards]" \
2017-05-06 19:50:24 +00:00
{-R,--recurse}"[Recurse into directories]" \
{-T,--tree}"[Recurse into directories as a tree]" \
{-F,--classify}"[Display type indicator by file names]" \
{--color,--colour}"[When to use terminal colours]" \
{--color,--colour}-scale"[Highlight levels of file sizes distinctly]" \
--group-directories-first"[Sort directories before other files]" \
2017-06-29 12:24:55 +00:00
{-a,--all}"[Show hidden and 'dot' files]" \
2017-05-06 19:50:24 +00:00
{-d,--list-dirs}"[List directories like regular files]" \
{-L,--level}"+[Limit the depth of recursion]" \
2017-05-06 19:50:24 +00:00
{-r,--reverse}"[Reverse the sort order]" \
2017-06-29 13:57:43 +00:00
{-s,--sort}"[Which field to sort by]:(sort field):(accessed created extension Extension filename Filename inode modified name Name none size type)" \
2017-05-06 19:50:24 +00:00
{-I,--ignore-glob}"[Ignore files that match these glob patterns]" \
{-b,--binary}"[List file sizes with binary prefixes]" \
{-B,--bytes}"[List file sizes in bytes, without any prefixes]" \
{-g,--group}"[List each file's group]" \
2017-05-06 19:50:24 +00:00
{-h,--header}"[Add a header row to each column]" \
{-H,--links}"[List each file's number of hard links]" \
{-i,--inode}"[List each file's inode number]" \
2017-05-06 19:50:24 +00:00
{-m,--modified}"[Use the modified timestamp field]" \
{-S,--blocks}"[List each file's number of filesystem blocks]" \
2017-05-06 19:50:24 +00:00
{-t,--time}"[Which time field to show]:(time field):(accessed created modified)" \
2017-07-05 23:52:27 +00:00
--time-style"[How to format timestamps]:(time style):(default iso long-iso full-iso)" \
2017-05-06 19:50:24 +00:00
{-u,--accessed}"[Use the accessed timestamp field]" \
{-U,--created}"[Use the created timestamp field]" \
--git"[List each file's Git status, if tracked]" \
{-@,--extended}"[List each file's extended attributes and sizes]" \
2017-05-06 19:50:24 +00:00
'*:filename:_files'
}
__exa