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>'
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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