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]" \
2017-05-06 22:00:45 +00:00
{ -l,--long} "[Display extended file metadata as a table]" \
2017-05-06 19:50:24 +00:00
{ -G,--grid} "[Display entries as a grid]" \
2017-05-06 22:00:45 +00:00
{ -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]" \
2017-05-06 22:00:45 +00:00
{ -L,--level} "+[Limit the depth of recursion]" \
2017-05-06 19:50:24 +00:00
{ -r,--reverse} "[Reverse the sort order]" \
2017-09-13 22:26:06 +00:00
{ -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)" \
2017-05-06 19:50:24 +00:00
{ -I,--ignore-glob} "[Ignore files that match these glob patterns]" \
2017-05-06 22:00:45 +00:00
{ -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]" \
2017-05-06 22:00:45 +00:00
{ -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]" \
2017-05-06 22:00:45 +00:00
{ -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]" \
2017-05-06 22:00:45 +00:00
--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