chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace tabs with spaces in some files
[elogind.git]
/
shell-completion
/
bash
/
systemctl
diff --git
a/shell-completion/bash/systemctl
b/shell-completion/bash/systemctl
index e335ee871c97d103a51a83aa5572e7ea8bc9ea6c..dc7ef6689820054018d28c0e3159584bb09f3547 100644
(file)
--- a/
shell-completion/bash/systemctl
+++ b/
shell-completion/bash/systemctl
@@
-123,7
+123,7
@@
_systemctl () {
fi
local -A VERBS=(
fi
local -A VERBS=(
- [ALL_UNITS]='is-active is-failed is-enabled status show mask preset help list-dependencies'
+ [ALL_UNITS]='is-active is-failed is-enabled status show
cat
mask preset help list-dependencies'
[ENABLED_UNITS]='disable'
[DISABLED_UNITS]='enable'
[REENABLABLE_UNITS]='reenable'
[ENABLED_UNITS]='disable'
[DISABLED_UNITS]='enable'
[REENABLABLE_UNITS]='reenable'
@@
-137,16
+137,16
@@
_systemctl () {
[JOBS]='cancel'
[SNAPSHOTS]='delete'
[ENVS]='set-environment unset-environment'
[JOBS]='cancel'
[SNAPSHOTS]='delete'
[ENVS]='set-environment unset-environment'
- [STANDALONE]='daemon-reexec daemon-reload default
dump
+ [STANDALONE]='daemon-reexec daemon-reload default
emergency exit halt hibernate hybrid-sleep kexec list-jobs
emergency exit halt hibernate hybrid-sleep kexec list-jobs
- list-sockets list-
units list-unit-files poweroff reboot rescue
- show-environment suspend get-default'
- [NAME]='snapshot
load
'
+ list-sockets list-
timers list-units list-unit-files poweroff
+
reboot rescue
show-environment suspend get-default'
+ [NAME]='snapshot'
[FILE]='link'
[TARGETS]='set-default'
)
[FILE]='link'
[TARGETS]='set-default'
)
- for ((i=0;
$i <= $
COMP_CWORD; i++)); do
+ for ((i=0;
i <
COMP_CWORD; i++)); do
if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]} &&
! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
verb=${COMP_WORDS[i]}
if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]} &&
! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
verb=${COMP_WORDS[i]}
@@
-154,7
+154,7
@@
_systemctl () {
fi
done
fi
done
- if
[[ -z $verb ]]; then
+ if [[ -z $verb ]]; then
comps="${VERBS[*]}"
elif __contains_word "$verb" ${VERBS[ALL_UNITS]}; then
comps="${VERBS[*]}"
elif __contains_word "$verb" ${VERBS[ALL_UNITS]}; then