diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2020-09-22 17:52:53 -0700 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-23 10:07:14 +0200 |
commit | cf18af825aa4a55debcf2ed88a5b930dfbc0d23f (patch) | |
tree | c4fd0b07e453cbd8f9b75fa39d8f23382492675a /shell-completion | |
parent | 2d52f8c46c09c6ffad8987afdeea1532c02b8fc5 (diff) | |
download | systemd-cf18af825aa4a55debcf2ed88a5b930dfbc0d23f.tar.gz |
zsh: add systemd-path completions
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/zsh/_systemd-path | 8 | ||||
-rw-r--r-- | shell-completion/zsh/meson.build | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/shell-completion/zsh/_systemd-path b/shell-completion/zsh/_systemd-path new file mode 100644 index 0000000000..dd2e720fd9 --- /dev/null +++ b/shell-completion/zsh/_systemd-path @@ -0,0 +1,8 @@ +#compdef systemd-path + +typeset -A sdpath=( ${$(systemd-path)/:/} ) +_arguments -S \ + '(-h --help)'{-h,--help}'[Print help text and exit]' \ + '(-v --version)'{-v,--version}'[Print a version string and exit]' \ + '--suffix=[Append a suffix to the paths]' \ + '*:pathname:compadd -k sdpath' diff --git a/shell-completion/zsh/meson.build b/shell-completion/zsh/meson.build index 6df9cc6ac2..ff91cc1134 100644 --- a/shell-completion/zsh/meson.build +++ b/shell-completion/zsh/meson.build @@ -17,6 +17,7 @@ if zshcompletiondir != 'no' ['_systemd-delta', ''], ['_systemd-nspawn', ''], ['_systemd', ''], + ['_systemd-path', ''], ['_systemd-run', ''], ['_udevadm', ''], ['_kernel-install', ''], |