mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-13 07:26:30 +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=(
|
local -A OPTS=(
|
||||||
[STANDALONE]='--all -a --defaults --fail --ignore-dependencies --failed --force -f --full --global
|
[STANDALONE]='--all -a --defaults --fail --ignore-dependencies --failed --force -f --full --global
|
||||||
--help -h --no-ask-password --no-block --no-reload --no-wall
|
--help -h --no-ask-password --no-block --no-pager --no-reload --no-wall
|
||||||
--order --require --quiet -q --system --user --version'
|
--order --require --quiet -q --privileged -P --system --user --version'
|
||||||
[ARG]='--kill-mode --kill-who --property -p --signal -s --type -t'
|
[ARG]='--host -H --kill-mode --kill-who --property -p --signal -s --type -t'
|
||||||
)
|
)
|
||||||
|
|
||||||
if __contains_word "$prev" ${OPTS[ARG]}; then
|
if __contains_word "$prev" ${OPTS[ARG]}; then
|
||||||
@ -62,7 +62,7 @@ _systemctl () {
|
|||||||
--kill-mode)
|
--kill-mode)
|
||||||
comps='control-group process'
|
comps='control-group process'
|
||||||
;;
|
;;
|
||||||
--property|-p)
|
--property|-p|--host|-H)
|
||||||
comps=''
|
comps=''
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user