mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Run fish_indent on share/completions/*.fish
This commit is contained in:
parent
aa3d2c89b3
commit
e9bf8b9a4e
13 changed files with 136 additions and 139 deletions
|
@ -207,5 +207,3 @@ complete -n '__fish_seen_subcommand_from logcat' -c adb -s e -l regex -d 'Only p
|
|||
complete -n '__fish_seen_subcommand_from logcat' -c adb -s m -l max-count -d 'Quit after print <count> lines'
|
||||
complete -n '__fish_seen_subcommand_from logcat' -c adb -l print -d 'Print all message even if they do not matches, requires --regex and --max-count'
|
||||
complete -n '__fish_seen_subcommand_from logcat' -c adb -l uid -d 'Only display log messages from UIDs present in the comma separate list <uids>'
|
||||
|
||||
|
||||
|
|
|
@ -40,12 +40,12 @@ set -l bb_helper '
|
|||
(aliases)))'
|
||||
|
||||
function __fish_clj_aliases -V bb_helper
|
||||
command -q bb ; or return
|
||||
command -q bb; or return
|
||||
bb -e "$bb_helper"
|
||||
end
|
||||
|
||||
function __fish_clj_tools -V bb_helper
|
||||
command -q bb ; or return
|
||||
command -q bb; or return
|
||||
bb -e "$bb_helper" tools
|
||||
end
|
||||
|
||||
|
|
|
@ -94,19 +94,19 @@ end
|
|||
complete -c env -a "(__fish_complete_env_subcommand)"
|
||||
# Complete the name of the variable to redefine
|
||||
complete -c env -n '__fish_env_defining_vars; and not string match -eq = -- (commandline -ct)' -a "(__fish_env_redefine_vars)" -f -d "Redefine variable"
|
||||
complete -c env -n '__fish_env_defining_vars; and not string match -eq = -- (commandline -ct)' -a "(__fish_env_names_from_history)" -f -d "Historical"
|
||||
complete -c env -n '__fish_env_defining_vars; and not string match -eq = -- (commandline -ct)' -a "(__fish_env_names_from_history)" -f -d Historical
|
||||
complete -c env -n '__fish_env_defining_vars; and string match -eq = -- (commandline -ct)' -a "(__fish_env_values_from_history)" -f
|
||||
|
||||
if set -q is_gnu
|
||||
complete -c env -n '__fish_env_not_yet_vars' -s i -l ignore-environment -d "Start with an empty environment"
|
||||
complete -c env -n '__fish_env_not_yet_vars' -s u -l unset -d "Unset environment variable" -x -a "(set --names -x)"
|
||||
complete -c env -n '__fish_env_not_yet_vars' -l help -d "Display help and exit"
|
||||
complete -c env -n '__fish_env_not_yet_vars' -l version -d "Display version and exit"
|
||||
complete -c env -n __fish_env_not_yet_vars -s i -l ignore-environment -d "Start with an empty environment"
|
||||
complete -c env -n __fish_env_not_yet_vars -s u -l unset -d "Unset environment variable" -x -a "(set --names -x)"
|
||||
complete -c env -n __fish_env_not_yet_vars -l help -d "Display help and exit"
|
||||
complete -c env -n __fish_env_not_yet_vars -l version -d "Display version and exit"
|
||||
else
|
||||
complete -c env -n '__fish_env_not_yet_vars' -s 0 -d "End output lines with NUL"
|
||||
complete -c env -n '__fish_env_not_yet_vars' -s i -d "Start with empty environment"
|
||||
complete -c env -n '__fish_env_not_yet_vars' -s P -d "Provide an alternate PATH"
|
||||
complete -c env -n '__fish_env_not_yet_vars' -s S -d "Split argument into args on ' '"
|
||||
complete -c env -n '__fish_env_not_yet_vars' -s u -d "Unset environment variable" -x -a "(set --names -x)"
|
||||
complete -c env -n '__fish_env_not_yet_vars' -s v -d "Verbose output on processing"
|
||||
complete -c env -n __fish_env_not_yet_vars -s 0 -d "End output lines with NUL"
|
||||
complete -c env -n __fish_env_not_yet_vars -s i -d "Start with empty environment"
|
||||
complete -c env -n __fish_env_not_yet_vars -s P -d "Provide an alternate PATH"
|
||||
complete -c env -n __fish_env_not_yet_vars -s S -d "Split argument into args on ' '"
|
||||
complete -c env -n __fish_env_not_yet_vars -s u -d "Unset environment variable" -x -a "(set --names -x)"
|
||||
complete -c env -n __fish_env_not_yet_vars -s v -d "Verbose output on processing"
|
||||
end
|
||||
|
|
|
@ -1449,9 +1449,9 @@ complete -c git -n '__fish_git_using_command log' -l walk-reflogs -s g -d 'Trave
|
|||
complete -c git -n '__fish_git_using_command log' -l no-walk -a "sorted unsorted" -f
|
||||
complete -c git -n '__fish_git_using_command log' -f -l bisect -l color-words -l abbrev -l notes -l expand-tabs -l show-notes -l show-linear-break
|
||||
complete -c git -n '__fish_git_using_command log' -l use-mailmap -l full-diff -l log-size -l left-only -l right-only -l cherry -l merge -l boundary -l simplify-by-decoration -l full-history -l dense -l sparse -l simplify-merges -l ancestry-path -l date-order \
|
||||
-l do-walk -l format -l abbrev-commit -l no-abbrev-commit -l oneline -l no-expand-tabs -l no-notes -l standard-notes -l no-standard-notes -l show-signature -l relative-date -l parents -l children -l left-right -l cc -l graph -l numstat -l shortstat -l summary \
|
||||
-l patch-with-stat -l name-only -l name-status -l raw -l patch-with-raw -l indent-heuristic -l no-indent-heuristic -l compaction-heuristic -l no-compaction-heuristic -l minimal -l patience -l histogram -l no-color -l no-renames -l check -l full-index -l binary \
|
||||
-l author-date-order -l topo-order -l reverse
|
||||
-l do-walk -l format -l abbrev-commit -l no-abbrev-commit -l oneline -l no-expand-tabs -l no-notes -l standard-notes -l no-standard-notes -l show-signature -l relative-date -l parents -l children -l left-right -l cc -l graph -l numstat -l shortstat -l summary \
|
||||
-l patch-with-stat -l name-only -l name-status -l raw -l patch-with-raw -l indent-heuristic -l no-indent-heuristic -l compaction-heuristic -l no-compaction-heuristic -l minimal -l patience -l histogram -l no-color -l no-renames -l check -l full-index -l binary \
|
||||
-l author-date-order -l topo-order -l reverse
|
||||
complete -c git -n '__fish_git_using_command log' -l date -a "relative local iso iso-local iso8601 iso8601-local iso-strict iso-strict-local iso8601-strict iso8601-strict-local rfc-local rfc2822-local short short-local raw human unix format: default default-local" -x
|
||||
complete -c git -n '__fish_git_using_command log' -l encoding -a '(__fish_print_encodings)' -x
|
||||
complete -c git -n '__fish_git_using_command log' -s c -s m -s r -s t -s u -s z
|
||||
|
@ -2175,7 +2175,7 @@ complete -f -c git -n '__fish_git_using_command config' -l show-origin -d 'Show
|
|||
complete -f -c git -n '__fish_git_using_command config' -n '__fish_seen_argument get' -l default -d 'Use default value when missing entry'
|
||||
|
||||
### for-each-ref
|
||||
complete -f -c git -n __fish_git_needs_command -a "for-each-ref" -d "Format and output info on each ref"
|
||||
complete -f -c git -n __fish_git_needs_command -a for-each-ref -d "Format and output info on each ref"
|
||||
complete -f -c git -n '__fish_git_using_command for-each-ref' -l count -d "Limit to n results"
|
||||
# Any one of --shell, --perl, --python, or --tcl
|
||||
set -l for_each_ref_interpreters shell perl python tcl
|
||||
|
|
|
@ -2,14 +2,14 @@ complete -c hostnamectl -f
|
|||
|
||||
set -l __hostnamectl_version $(hostnamectl --version &| string match -rg 'systemd (\d+).*')
|
||||
if test "$__hostnamectl_version" -lt 249
|
||||
complete -c hostnamectl -n "__fish_use_subcommand" -xa "status\t'Show hostname and related info'
|
||||
complete -c hostnamectl -n __fish_use_subcommand -xa "status\t'Show hostname and related info'
|
||||
set-hostname\t'Set hostname'
|
||||
set-icon-name\t'Set icon name'
|
||||
set-chassis\t'Set chassis type'
|
||||
set-deployment\t'Set deployment environment'
|
||||
set-location\t'Set location'"
|
||||
else
|
||||
complete -c hostnamectl -n "__fish_use_subcommand" -xa "status\t'Show hostname and related info'
|
||||
complete -c hostnamectl -n __fish_use_subcommand -xa "status\t'Show hostname and related info'
|
||||
hostname\t'Get or set hostname'
|
||||
icon-name\t'Get or set icon name'
|
||||
chassis\t'Get or set chassis type'
|
||||
|
|
|
@ -4,7 +4,7 @@ function __fish_print_console_keymaps
|
|||
# or which keymaps it can find. localectl can list keymaps, but is part of
|
||||
# systemd, which we shouldn't depend on.
|
||||
|
||||
set -l dirs '/usr/share/kbd/keymaps' '/usr/share/keymaps' '/usr/lib/kbd/keymaps' '/lib/kbd/keymaps' '/usr/src/linux/drivers'
|
||||
set -l dirs /usr/share/kbd/keymaps /usr/share/keymaps /usr/lib/kbd/keymaps /lib/kbd/keymaps /usr/src/linux/drivers
|
||||
|
||||
path filter -f $dirs/** | string replace -rf '.*/(.*)\.k?map(|\..*)$' '$1'
|
||||
end
|
||||
|
|
|
@ -27,4 +27,3 @@ complete -c reflector -l completion-percent -d 'Set the minimum completion perce
|
|||
complete -c reflector -l isos -d 'Only return mirrors that host ISOs'
|
||||
complete -c reflector -l ipv4 -d 'Only return mirrors that support IPv4'
|
||||
complete -c reflector -l ipv6 -d 'Only return mirrors that support IPv6'
|
||||
|
||||
|
|
|
@ -17,24 +17,24 @@ function __resolvectl_classes
|
|||
end
|
||||
|
||||
function __resolvectl_commands
|
||||
printf "%b\n" "query\tResolve domain names or IP addresses"\
|
||||
"service\tResolve service records"\
|
||||
"openpgp\tQuery PGP keys for email"\
|
||||
"tlsa\tQuery TLS public keys"\
|
||||
"status\tShow current DNS settings"\
|
||||
"statistics\tShow resolver statistics"\
|
||||
"reset-statistics\tReset statistics counters"\
|
||||
"flush-caches\tFlush DNS RR caches"\
|
||||
"reset-server-features\tFlushe all feature level information"\
|
||||
"dns\tSet per-interface DNS servers"\
|
||||
"domain\tSet per-interface search or routing domains"\
|
||||
"default-route\tSet per-interface default route flag"\
|
||||
"llmnr\tSet per-interface LLMNR settings"\
|
||||
"mdns\tSet per-interface MulticastDNS settings"\
|
||||
"dnssec\tSet per-interface DNSSEC settings"\
|
||||
"dnsovertls\tSet per-interface DNS-over-TLS settings"\
|
||||
"nta\tSet per-interface DNSSEC NTA domains"\
|
||||
"revert\tRevert the per-interface DNS configuration"\
|
||||
printf "%b\n" "query\tResolve domain names or IP addresses" \
|
||||
"service\tResolve service records" \
|
||||
"openpgp\tQuery PGP keys for email" \
|
||||
"tlsa\tQuery TLS public keys" \
|
||||
"status\tShow current DNS settings" \
|
||||
"statistics\tShow resolver statistics" \
|
||||
"reset-statistics\tReset statistics counters" \
|
||||
"flush-caches\tFlush DNS RR caches" \
|
||||
"reset-server-features\tFlushe all feature level information" \
|
||||
"dns\tSet per-interface DNS servers" \
|
||||
"domain\tSet per-interface search or routing domains" \
|
||||
"default-route\tSet per-interface default route flag" \
|
||||
"llmnr\tSet per-interface LLMNR settings" \
|
||||
"mdns\tSet per-interface MulticastDNS settings" \
|
||||
"dnssec\tSet per-interface DNSSEC settings" \
|
||||
"dnsovertls\tSet per-interface DNS-over-TLS settings" \
|
||||
"nta\tSet per-interface DNSSEC NTA domains" \
|
||||
"revert\tRevert the per-interface DNS configuration" \
|
||||
"log-level\tSet the log-level"
|
||||
end
|
||||
|
||||
|
|
|
@ -8,37 +8,37 @@ end
|
|||
complete -c toot -f
|
||||
|
||||
# # Subcommands
|
||||
complete -c toot -a activate -n "__fish_is_first_token" -d 'Switch between accounts.'
|
||||
complete -c toot -a auth -n "__fish_is_first_token" -d 'Show logged in accounts and instances'
|
||||
complete -c toot -a instance -n "__fish_is_first_token" -d 'Display instance details'
|
||||
complete -c toot -a login -n "__fish_is_first_token" -d 'Log in using your browser'
|
||||
complete -c toot -a login_cli -n "__fish_is_first_token" -d 'Log in from the console'
|
||||
complete -c toot -a logout -n "__fish_is_first_token" -d 'Log out'
|
||||
complete -c toot -a notifications -n "__fish_is_first_token" -d 'Show notifications'
|
||||
complete -c toot -a post -n "__fish_is_first_token" -d 'Post a status text'
|
||||
complete -c toot -a search -n "__fish_is_first_token" -d 'Search for users or hashtags'
|
||||
complete -c toot -a thread -n "__fish_is_first_token" -d 'Show toot thread items'
|
||||
complete -c toot -a timeline -n "__fish_is_first_token" -d 'Show recent items'
|
||||
complete -c toot -a tui -n "__fish_is_first_token" -d 'Toot terminal user interface'
|
||||
complete -c toot -a upload -n "__fish_is_first_token" -d 'Upload a file'
|
||||
complete -c toot -a whoami -n "__fish_is_first_token" -d 'Display user details'
|
||||
complete -c toot -a whois -n "__fish_is_first_token" -d 'Display account details'
|
||||
complete -c toot -a delete -n "__fish_is_first_token" -d 'Delete a status'
|
||||
complete -c toot -a favourite -n "__fish_is_first_token" -d 'Favourite a status'
|
||||
complete -c toot -a pin -n "__fish_is_first_token" -d 'Pin a status'
|
||||
complete -c toot -a reblog -n "__fish_is_first_token" -d 'Reblog a status'
|
||||
complete -c toot -a reblogged_by -n "__fish_is_first_token" -d 'Show rebloggers of status'
|
||||
complete -c toot -a unfavourite -n "__fish_is_first_token" -d 'Unfavourite a status'
|
||||
complete -c toot -a unpin -n "__fish_is_first_token" -d 'Unpin a status'
|
||||
complete -c toot -a unreblog -n "__fish_is_first_token" -d 'Unreblog a status'
|
||||
complete -c toot -a activate -n __fish_is_first_token -d 'Switch between accounts.'
|
||||
complete -c toot -a auth -n __fish_is_first_token -d 'Show logged in accounts and instances'
|
||||
complete -c toot -a instance -n __fish_is_first_token -d 'Display instance details'
|
||||
complete -c toot -a login -n __fish_is_first_token -d 'Log in using your browser'
|
||||
complete -c toot -a login_cli -n __fish_is_first_token -d 'Log in from the console'
|
||||
complete -c toot -a logout -n __fish_is_first_token -d 'Log out'
|
||||
complete -c toot -a notifications -n __fish_is_first_token -d 'Show notifications'
|
||||
complete -c toot -a post -n __fish_is_first_token -d 'Post a status text'
|
||||
complete -c toot -a search -n __fish_is_first_token -d 'Search for users or hashtags'
|
||||
complete -c toot -a thread -n __fish_is_first_token -d 'Show toot thread items'
|
||||
complete -c toot -a timeline -n __fish_is_first_token -d 'Show recent items'
|
||||
complete -c toot -a tui -n __fish_is_first_token -d 'Toot terminal user interface'
|
||||
complete -c toot -a upload -n __fish_is_first_token -d 'Upload a file'
|
||||
complete -c toot -a whoami -n __fish_is_first_token -d 'Display user details'
|
||||
complete -c toot -a whois -n __fish_is_first_token -d 'Display account details'
|
||||
complete -c toot -a delete -n __fish_is_first_token -d 'Delete a status'
|
||||
complete -c toot -a favourite -n __fish_is_first_token -d 'Favourite a status'
|
||||
complete -c toot -a pin -n __fish_is_first_token -d 'Pin a status'
|
||||
complete -c toot -a reblog -n __fish_is_first_token -d 'Reblog a status'
|
||||
complete -c toot -a reblogged_by -n __fish_is_first_token -d 'Show rebloggers of status'
|
||||
complete -c toot -a unfavourite -n __fish_is_first_token -d 'Unfavourite a status'
|
||||
complete -c toot -a unpin -n __fish_is_first_token -d 'Unpin a status'
|
||||
complete -c toot -a unreblog -n __fish_is_first_token -d 'Unreblog a status'
|
||||
|
||||
# Accounts
|
||||
complete -c toot -a follow -n "__fish_is_first_token" -d 'Follow an account'
|
||||
complete -c toot -a unfollow -n "__fish_is_first_token" -d 'Unfollow an account'
|
||||
complete -c toot -a mute -n "__fish_is_first_token" -d 'Mute an account'
|
||||
complete -c toot -a unmute -n "__fish_is_first_token" -d 'Unmute an account'
|
||||
complete -c toot -a block -n "__fish_is_first_token" -d 'Block an account'
|
||||
complete -c toot -a unblock -n "__fish_is_first_token" -d 'Unblock an account'
|
||||
complete -c toot -a follow -n __fish_is_first_token -d 'Follow an account'
|
||||
complete -c toot -a unfollow -n __fish_is_first_token -d 'Unfollow an account'
|
||||
complete -c toot -a mute -n __fish_is_first_token -d 'Mute an account'
|
||||
complete -c toot -a unmute -n __fish_is_first_token -d 'Unmute an account'
|
||||
complete -c toot -a block -n __fish_is_first_token -d 'Block an account'
|
||||
complete -c toot -a unblock -n __fish_is_first_token -d 'Unblock an account'
|
||||
|
||||
# Parameters common to all subcommands
|
||||
complete -c toot -n "__fish_seen_subcommand_from $_sub_commands" -l debug -d 'show debug log'
|
||||
|
|
Loading…
Reference in a new issue