summaryrefslogtreecommitdiffstats
path: root/shell-completion/zsh/_systemd-path
blob: d1fb24b2fd8b300364c908b6b6a2f4e8f0351b2f (plain)
1
2
3
4
5
6
7
8
9
#compdef systemd-path
# SPDX-License-Identifier: LGPL-2.1-or-later

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'