diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-04-10 22:40:58 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-04-11 19:11:52 -0400 |
commit | 20b3f379cfd44e61dd1838a107f1d5363fab5b5d (patch) | |
tree | 026941d6a711a91d38e4422c99215c8ecbf6e8b1 /shell-completion/systemd-zsh-completion.zsh | |
parent | 296f3c53cb4a87e297c019475f900fb3cca2d781 (diff) |
systemctl: allow multiple arguments to --type
This mirrors --property, and is generally useful.
New functionality is used in bash completion.
In case of zsh completion, new functionality is less useful
because of caching. Nevertheless, zsh completion for restart
is made to behave more-or-less the same as bash completion.
At least sockets can be restarted.
Diffstat (limited to 'shell-completion/systemd-zsh-completion.zsh')
-rw-r--r-- | shell-completion/systemd-zsh-completion.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/systemd-zsh-completion.zsh b/shell-completion/systemd-zsh-completion.zsh index a54e9d727a..8b60859c23 100644 --- 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 \ - [[ "$line" =~ \.(device|snapshot|socket|timer)$ ]] || echo " $line"; \ + [[ "$line" =~ \.device$ ]] || echo " $line"; \ done ) } done |