fork/eza
git clone https://git.julia.blue/fork/eza
c6eab635
v0.16.1
1#compdef eza 2 3# Save this file as _eza in /usr/local/share/zsh/site-functions or in any 4# other folder in $fpath. E.g. save it in a folder called ~/.zfunc and add a 5# line containing `fpath=(~/.zfunc $fpath)` somewhere before `compinit` in your 6# ~/.zshrc. 7 8__eza() { 9 # Give completions using the `_arguments` utility function with 10 # `-s` for option stacking like `eza -ab` for `eza -a -b` and 11 # `-S` for delimiting options with `--` like in `eza -- -a`. 12 _arguments -s -S \ 13 "(- *)"{-v,--version}"[Show version of eza]" \ 14 "(- *)"--help"[Show list of command-line options]" \ 15 {-1,--oneline}"[Display one entry per line]" \ 16 {-l,--long}"[Display extended file metadata as a table]" \ 17 {-G,--grid}"[Display entries as a grid]" \ 18 {-x,--across}"[Sort the grid across, rather than downwards]" \ 19 {-R,--recurse}"[Recurse into directories]" \ 20 {-T,--tree}"[Recurse into directories as a tree]" \ 21 {-X,--dereference}"[Dereference symbolic links when displaying information]" \ 22 {-F,--classify}"[Display type indicator by file names]" \ 23 --colo{,u}r="[When to use terminal colours]:(when):(always auto automatic never)" \ 24 --colo{,u}r-scale"[highlight levels of 'field' distinctly]:(fields):(all age size)" \ 25 --colo{,u}r-scale-mode"[Use gradient or fixed colors in --color-scale]:(mode):(fixed gradient)" \ 26 --icons="[When to display icons]:(when):(always auto automatic never)" \ 27 --no-quotes"[Don't quote filenames with spaces]" \ 28 --hyperlink"[Display entries as hyperlinks]" \ 29 --group-directories-first"[Sort directories before other files]" \ 30 --git-ignore"[Ignore files mentioned in '.gitignore']" \ 31 {-a,--all}"[Show hidden and 'dot' files. Use this twice to also show the '.' and '..' directories]" \ 32 {-A,--almost-all}"[Equivalent to --all; included for compatibility with \'ls -A\']" \ 33 {-d,--list-dirs}"[List directories like regular files]" \ 34 {-D,--only-dirs}"[List only directories]" \ 35 {-f,--only-files}"[List only files]" \ 36 {-L,--level}"+[Limit the depth of recursion]" \ 37 {-w,--width}"+[Limits column output of grid, 0 implies auto-width]" \ 38 {-r,--reverse}"[Reverse the sort order]" \ 39 {-s,--sort}="[Which field to sort by]:(sort field):(accessed age changed created date extension Extension filename Filename inode modified oldest name Name newest none size time type)" \ 40 {-I,--ignore-glob}"[Ignore files that match these glob patterns]" \ 41 {-b,--binary}"[List file sizes with binary prefixes]" \ 42 {-B,--bytes}"[List file sizes in bytes, without any prefixes]" \ 43 --changed"[Use the changed timestamp field]" \ 44 {-g,--group}"[List each file's group]" \ 45 {-h,--header}"[Add a header row to each column]" \ 46 {-H,--links}"[List each file's number of hard links]" \ 47 {-i,--inode}"[List each file's inode number]" \ 48 {-m,--modified}"[Use the modified timestamp field]" \ 49 {-n,--numeric}"[List numeric user and group IDs.]" \ 50 {-S,--blocksize}"[List each file's size of allocated file system blocks.]" \ 51 {-t,--time}="[Which time field to show]:(time field):(accessed changed created modified)" \ 52 --time-style="[How to format timestamps]:(time style):(default iso long-iso full-iso relative)" \ 53 --total-size="[Show recursive directory size (unix only)]" \ 54 --no-permissions"[Suppress the permissions field]" \ 55 {-o,--octal-permissions}"[List each file's permission in octal format]" \ 56 --no-filesize"[Suppress the filesize field]" \ 57 --no-user"[Suppress the user field]" \ 58 --no-time"[Suppress the time field]" \ 59 {-u,--accessed}"[Use the accessed timestamp field]" \ 60 {-U,--created}"[Use the created timestamp field]" \ 61 {-X,--dereference}"[dereference symlinks for file information]" \ 62 --git"[List each file's Git status, if tracked]" \ 63 --no-git"[Suppress Git status]" \ 64 --git-repos"[List each git-repos status and branch name]" \ 65 --git-repos-no-status"[List each git-repos branch name (much faster)]" \ 66 {-@,--extended}"[List each file's extended attributes and sizes]" \ 67 {-Z,--context}"[List each file's security context]" \ 68 {-M,--mounts}"[Show mount details (long mode only)]" \ 69 '*:filename:_files' \ 70 --smart-group"[Only show group if it has a different name from owner]" \ 71 --stdin"[When piping to eza. Read file names from stdin]" 72} 73 74__eza