1#compdef systemd-path
2# SPDX-License-Identifier: LGPL-2.1-or-later
3
4typeset -A sdpath=( ${$(systemd-path)/:/} )
5_arguments -S \
6	'(-h --help)'{-h,--help}'[Print help text and exit]' \
7	'(-v --version)'{-v,--version}'[Print a version string and exit]' \
8	'--suffix=[Append a suffix to the paths]' \
9	'*:pathname:compadd -k sdpath'
10