1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-10 00:58:20 +03:00
Ronan Pigott 8e096f271a zsh: add systemd-path completions
(cherry picked from commit cf18af825aa4a55debcf2ed88a5b930dfbc0d23f)
2020-12-08 14:27:49 +01:00

9 lines
285 B
Plaintext

#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'