summaryrefslogtreecommitdiffstats
path: root/shell-completion
diff options
context:
space:
mode:
authorhydrargyrum <hydrargyrum@users.noreply.github.com>2024-04-30 16:02:22 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-05-09 13:25:32 +0200
commit5ebd945cda08509e8171338fde91c862b8dc7014 (patch)
tree59826af4703cdff1b6283ba58c85db99c5df2394 /shell-completion
parentnetwork: Add missing IPv6AcceptRA to list of config sections (diff)
downloadsystemd-5ebd945cda08509e8171338fde91c862b8dc7014.tar.xz
systemd-5ebd945cda08509e8171338fde91c862b8dc7014.zip
shell-completion: on zsh, systemd-cat is a precommand
_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 -"
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/zsh/_systemd4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell-completion/zsh/_systemd b/shell-completion/zsh/_systemd
index 5547b0cbcb..eab7e0efdf 100644
--- a/shell-completion/zsh/_systemd
+++ b/shell-completion/zsh/_systemd
@@ -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 \