X Tutup
Skip to content

Commit cf18af8

Browse files
Ronan Pigottkeszybz
authored andcommitted
zsh: add systemd-path completions
1 parent 2d52f8c commit cf18af8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

shell-completion/zsh/_systemd-path

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#compdef systemd-path
2+
3+
typeset -A sdpath=( ${$(systemd-path)/:/} )
4+
_arguments -S \
5+
'(-h --help)'{-h,--help}'[Print help text and exit]' \
6+
'(-v --version)'{-v,--version}'[Print a version string and exit]' \
7+
'--suffix=[Append a suffix to the paths]' \
8+
'*:pathname:compadd -k sdpath'

shell-completion/zsh/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if zshcompletiondir != 'no'
1717
['_systemd-delta', ''],
1818
['_systemd-nspawn', ''],
1919
['_systemd', ''],
20+
['_systemd-path', ''],
2021
['_systemd-run', ''],
2122
['_udevadm', ''],
2223
['_kernel-install', ''],

0 commit comments

Comments
 (0)
X Tutup