chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shell-completion: add shell completion for "systemctl help"
[elogind.git]
/
shell-completion
/
systemd-zsh-completion.zsh
diff --git
a/shell-completion/systemd-zsh-completion.zsh
b/shell-completion/systemd-zsh-completion.zsh
index a54e9d727ade070a2207c5ddf2f9674adef5435b..8b60859c23654e57e52b1912cfb3a5d756468762 100644
(file)
--- a/
shell-completion/systemd-zsh-completion.zsh
+++ b/
shell-completion/systemd-zsh-completion.zsh
@@
-536,7
+536,7
@@
for fun in restart reload-or-restart ; do
_systemctl_all_units
compadd "$@" - $( _filter_units_by_property CanStart yes \
${_sys_all_units[*]} | while read line; do \
_systemctl_all_units
compadd "$@" - $( _filter_units_by_property CanStart yes \
${_sys_all_units[*]} | while read line; do \
- [[ "$line" =~ \.
(device|snapshot|socket|timer)
$ ]] || echo " $line"; \
+ [[ "$line" =~ \.
device
$ ]] || echo " $line"; \
done )
}
done
done )
}
done