Skip to content

Commit

Permalink
shell-completion: on zsh, systemd-cat is a precommand
Browse files Browse the repository at this point in the history
_precommand lets zsh complete other commands and their arguments
e.g. it can complete grep with "systemd-cat gr" and complete grep options
with "systemd-cat grep -"
  • Loading branch information
hydrargyrum authored and bluca committed May 9, 2024
1 parent 50e0509 commit 5ebd945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell-completion/zsh/_systemd
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ case "$service" in
'(-t --identifier)'{-t+,--identifier=}'[Set syslog identifier.]:syslog identifier:' \
'(-p --priority)'{-p+,--priority=}'[Set priority value.]:value:({0..7})' \
'--level-prefix=[Control whether level prefix shall be parsed.]:boolean:(1 0)' \
'--namespace=[Connect to specified journal namespace.]:journal namespace:' \
':Message'
'--namespace=[Connect to specified journal namespace.]:journal namespace:'
_precommand
;;
systemd-cgls)
_arguments \
Expand Down

0 comments on commit 5ebd945

Please sign in to comment.