mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-25 03:49:00 +07:00
bash: Add host, privileged, and no-pager bash option completions.
This commit is contained in:
parent
4160ec67ba
commit
c98a949fb2
@ -43,9 +43,9 @@ _systemctl () {
|
||||
|
||||
local -A OPTS=(
|
||||
[STANDALONE]='--all -a --defaults --fail --ignore-dependencies --failed --force -f --full --global
|
||||
--help -h --no-ask-password --no-block --no-reload --no-wall
|
||||
--order --require --quiet -q --system --user --version'
|
||||
[ARG]='--kill-mode --kill-who --property -p --signal -s --type -t'
|
||||
--help -h --no-ask-password --no-block --no-pager --no-reload --no-wall
|
||||
--order --require --quiet -q --privileged -P --system --user --version'
|
||||
[ARG]='--host -H --kill-mode --kill-who --property -p --signal -s --type -t'
|
||||
)
|
||||
|
||||
if __contains_word "$prev" ${OPTS[ARG]}; then
|
||||
@ -62,7 +62,7 @@ _systemctl () {
|
||||
--kill-mode)
|
||||
comps='control-group process'
|
||||
;;
|
||||
--property|-p)
|
||||
--property|-p|--host|-H)
|
||||
comps=''
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user