mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 11:01:26 +08:00
completions: remove unnecessary use of --erase
This commit is contained in:
parent
3040486968
commit
7fb3880b96
@ -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
|
||||
|
@ -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'
|
||||
|
@ -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))"
|
||||
|
@ -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} \
|
||||
|
@ -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)"
|
||||
|
@ -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
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
complete -c rustup -e
|
||||
complete -c rustup
|
||||
|
||||
set -l subcmds \
|
||||
show \
|
||||
|
@ -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)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user