Merge pull request #512 from cgorski/add-more-completions

fix: update additional completions for help, almost-all, dereference
This commit is contained in:
Christina Sørensen 2023-10-12 04:00:31 +00:00 committed by GitHub
commit 4b94b3fb70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -1,6 +1,6 @@
# Meta-stuff
complete -c eza -s v -l version -d "Show version of eza"
complete -c eza -s '?' -l help -d "Show list of command-line options"
complete -c eza -l help -d "Show list of command-line options"
# Display options
complete -c eza -s 1 -l oneline -d "Display one entry per line"
@ -9,6 +9,7 @@ complete -c eza -s G -l grid -d "Display entries in a grid"
complete -c eza -s x -l across -d "Sort the grid across, rather than downwards"
complete -c eza -s R -l recurse -d "Recurse into directories"
complete -c eza -s T -l tree -d "Recurse into directories as a tree"
complete -c eza -s X -l dereference -d "Dereference symbolic links when displaying information"
complete -c eza -s F -l classify -d "Display type indicator by file names"
complete -c eza -l color \
-l colour -d "When to use terminal colours" -x -a "
@ -28,6 +29,7 @@ complete -c eza -l hyperlink -d "Display entries as hyperlinks"
complete -c eza -l group-directories-first -d "Sort directories before other files"
complete -c eza -l git-ignore -d "Ignore files mentioned in '.gitignore'"
complete -c eza -s a -l all -d "Show hidden and 'dot' files. Use this twice to also show the '.' and '..' directories"
complete -c eza -s A -l almost-all -d "Equivalent to --all; included for compatibility with `ls -A`"
complete -c eza -s d -l list-dirs -d "List directories like regular files"
complete -c eza -s L -l level -d "Limit the depth of recursion" -x -a "1 2 3 4 5 6 7 8 9"
complete -c eza -s w -l width -d "Limits column output of grid, 0 implies auto-width"

View file

@ -7,6 +7,7 @@ export extern "eza" [
--across(-x) # Sort the grid across, rather than downwards
--recurse(-R) # Recurse into directories
--tree(-T) # Recurse into directories as a tree
--dereference(-X) # Dereference symbolic links when displaying information
--classify(-F) # Display type indicator by file names
--color # When to use terminal colours
--colour # When to use terminal colours
@ -19,6 +20,7 @@ export extern "eza" [
--group-directories-first # Sort directories before other files
--git-ignore # Ignore files mentioned in '.gitignore'
--all(-a) # Show hidden and 'dot' files. Use this twice to also show the '.' and '..' directories
--almost-all(-A) # Equivalent to --all; included for compatibility with `ls -A`
--list-dirs(-d) # List directories like regular files
--level(-L): string # Limit the depth of recursion
--width(-w) # Limits column output of grid, 0 implies auto-width

View file

@ -18,6 +18,7 @@ __eza() {
{-x,--across}"[Sort the grid across, rather than downwards]" \
{-R,--recurse}"[Recurse into directories]" \
{-T,--tree}"[Recurse into directories as a tree]" \
{-X,--dereference}"[Dereference symbolic links when displaying information]" \
{-F,--classify}"[Display type indicator by file names]" \
--colo{,u}r="[When to use terminal colours]:(when):(always auto automatic never)" \
--colo{,u}r-scale"[Highlight levels of file sizes distinctly]" \
@ -28,6 +29,7 @@ __eza() {
--group-directories-first"[Sort directories before other files]" \
--git-ignore"[Ignore files mentioned in '.gitignore']" \
{-a,--all}"[Show hidden and 'dot' files. Use this twice to also show the '.' and '..' directories]" \
{-A,--almost-all}"[Equivalent to --all; included for compatibility with `ls -A`]" \
{-d,--list-dirs}"[List directories like regular files]" \
{-D,--only-dirs}"[List only directories]" \
{-f,--only-files}"[List only files]" \