zsh: add systemd-path completions
This commit is contained in:
parent
2d52f8c46c
commit
cf18af825a
|
@ -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'
|
|
@ -17,6 +17,7 @@ if zshcompletiondir != 'no'
|
||||||
['_systemd-delta', ''],
|
['_systemd-delta', ''],
|
||||||
['_systemd-nspawn', ''],
|
['_systemd-nspawn', ''],
|
||||||
['_systemd', ''],
|
['_systemd', ''],
|
||||||
|
['_systemd-path', ''],
|
||||||
['_systemd-run', ''],
|
['_systemd-run', ''],
|
||||||
['_udevadm', ''],
|
['_udevadm', ''],
|
||||||
['_kernel-install', ''],
|
['_kernel-install', ''],
|
||||||
|
|
Loading…
Reference in New Issue