completions: remove unnecessary use of --erase

This commit is contained in:
Jason Nader 2020-03-07 15:56:26 +09:00 committed by Fabian Homborg
parent 3040486968
commit 7fb3880b96
10 changed files with 7 additions and 17 deletions

View File

@ -119,7 +119,7 @@ end
### Commands
set -l commands list status monitor capture tree introspect call get-property set-property help
complete -f -e -c busctl
complete -f -c busctl
complete -f -c busctl -n "not __fish_seen_subcommand_from $commands" -a "$commands"
### Arguments to commands

View File

@ -21,7 +21,7 @@ end
### Commands
set -l commands read list write reset compile update watch dump load help
complete -f -e -c dconf
complete -f -c dconf
complete -f -c dconf -n "not __fish_seen_subcommand_from $commands" -a read -d 'Read the value of a key'
complete -f -c dconf -n "not __fish_seen_subcommand_from $commands" -a list -d 'List the sub-keys and sub-directories of a directory'
complete -f -c dconf -n "not __fish_seen_subcommand_from $commands" -a write -d 'Write a new value to a key'

View File

@ -74,7 +74,7 @@ end
set -l valid_commands get monitor writable range describe set reset reset-recursively list-schemas list-relocatable-schemas list-keys list-children list-recursively help
complete -f -e -c gsettings
complete -f -c gsettings
complete -f -c gsettings -n "not __fish_seen_subcommand_from $valid_commands" -l version -d 'Print the version information'
complete -c gsettings -n "not __fish_seen_subcommand_from $valid_commands" -l schemadir -d 'Specify a custom schemas directory' -xa "(__fish_complete_directories (commandline -ct))"

View File

@ -1,4 +1,4 @@
complete -f -e -c machinectl
complete -f -c machinectl
set -l commands list status show start login enable disable poweroff reboot \
terminate kill bind copy-{to,from} list-images image-status show-image clone rename read-only remove set-limit pull-{tar,raw,dkr} \

View File

@ -1,7 +1,4 @@
# Completions for pacaur
set -l progname pacaur
complete -e -c $progname
complete -c $progname -f
set -l listinstalled "(pacman -Q | string replace ' ' \t)"

View File

@ -1,7 +1,7 @@
# Pulseaudio's pacmd
# This covers the most useful commands
set -l commands (pacmd help | string match -r '^ +[-\w]+' | string trim)
complete -f -e -c pacmd
complete -f -c pacmd
complete -f -c pacmd -w pactl
# These descriptions are a bit wordy and unnecessary

View File

@ -47,7 +47,7 @@ function __fish_pa_complete_unloaded_modules
end
end
complete -f -e -c pactl
complete -f -c pactl
complete -f -c pactl -n "not __fish_seen_subcommand_from $commands" -a "$ctlcommands"
complete -f -c pactl -n "not __fish_seen_subcommand_from $commands" -a stat -d 'Show statistics about memory usage'

View File

@ -1,7 +1,3 @@
# Tab completion for rustc (https://github.com/rust-lang/rust).
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
complete -e -c rustc
complete -c rustc -s h -l help
complete -c rustc -x -l cfg

View File

@ -1,4 +1,4 @@
complete -c rustup -e
complete -c rustup
set -l subcmds \
show \

View File

@ -1,7 +1,4 @@
# Completions for yaourt
set -l progname yaourt
complete -e -c $progname
complete -c $progname -f
set -l listinstalled "(pacman -Q | string replace ' ' \t)"