zsh-completion: actually complete template names for subcommands enable, reenable...
authorEric Cook <llua@gmx.com>
Mon, 18 May 2015 05:02:39 +0000 (01:02 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 18 May 2015 09:22:08 +0000 (05:22 -0400)
commitfb869ca1d20e503708ae813c3d3ebcf5a5173c25
tree7b0adc59e26a3053154afea529349c7215d5ef97
parent67afa93148ca51eb1d37717ad3c3cac980be1c7a
zsh-completion: actually complete template names for subcommands enable, reenable and disable.

compadd's -a option treats non-option arguments as arrays. So
$(_systemctl_get_template_names) expands to some words that aren't
legal array names. Even if there were, they would be empty; thus adding
nothing.

deduplicated a few functions too.
shell-completion/zsh/_systemctl.in