mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-01 05:47:04 +03:00
zsh: add systemd-path completions
(cherry picked from commit cf18af825aa4a55debcf2ed88a5b930dfbc0d23f)
This commit is contained in:
parent
eca618e10b
commit
8e096f271a
8
shell-completion/zsh/_systemd-path
Normal file
8
shell-completion/zsh/_systemd-path
Normal file
@ -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-nspawn', ''],
|
||||
['_systemd', ''],
|
||||
['_systemd-path', ''],
|
||||
['_systemd-run', ''],
|
||||
['_udevadm', ''],
|
||||
['_kernel-install', ''],
|
||||
|
Loading…
x
Reference in New Issue
Block a user