From 2c12a402cb1e8277c271ced8dc9c06d20b8f6017 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Mon, 21 Jul 2014 21:11:56 -0400 Subject: shell-completion: systemd-analyze verify, systemctl link Some zsh completion helpers were not installed, so completion was broken. Add systemd-analyze verify. Make systemctl link complete only unit names. --- shell-completion/zsh/_sd_unit_files | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 shell-completion/zsh/_sd_unit_files (limited to 'shell-completion/zsh/_sd_unit_files') diff --git a/shell-completion/zsh/_sd_unit_files b/shell-completion/zsh/_sd_unit_files new file mode 100644 index 0000000000..4778a0420d --- /dev/null +++ b/shell-completion/zsh/_sd_unit_files @@ -0,0 +1,9 @@ +#autoload + +_sd_unit_files() { + local files expl + files=( '*:files:->files' ) + + _description files expl 'unit file' + _files "$expl[@]" -g '*.(automount|busname|device|mount|path|service|snapshot|socket|swap|target|timer)' +} -- cgit v1.2.3-54-g00ecf