Shortened some which.fish completions. (#10347)

* Shortened some which.fish completions.

* improve descriptions for which command options
This commit is contained in:
amiyzku 2024-03-10 11:52:55 +09:00 committed by GitHub
parent f8757d154c
commit bb6b3101ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,10 +4,10 @@ if which -v >/dev/null 2>/dev/null # GNU
complete -c which -l skip-alias -d "Ignore option '--read-alias'"
complete -c which -l read-functions -d "Read shell function definitions from stdin, reporting matching ones on stdout"
complete -c which -l skip-functions -d "Ignore option '--read-functions'"
complete -c which -l skip-dot -d "Skip directories in PATH that start with a dot"
complete -c which -l skip-tilde -d "Skip directories in PATH that start with a tilde and executables which reside in the HOME directory"
complete -c which -l show-dot -d "If a directory in PATH starts with a dot and a matching executable was found for that path, then print './programname'"
complete -c which -l show-tilde -d "Output a tilde when a directory matches the HOME directory"
complete -c which -l skip-dot -d "Skip dirs in PATH that start with a dot"
complete -c which -l skip-tilde -d "Skip dirs in PATH that start with tilde and executables in \$HOME"
complete -c which -l show-dot -d "For matches in PATH dirs that start with a dot, print './programname'"
complete -c which -l show-tilde -d "Output a tilde when a dir matches the \$HOME"
complete -c which -l tty-only -d "Stop processing options on the right if not on tty"
complete -c which -s v -s V -l version -d "Display version and exit"
complete -c which -l help -d "Display help and exit"