summaryrefslogtreecommitdiffstats
path: root/shell-completion
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-08-02 06:56:47 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-08-02 09:33:46 +0200
commit40d90c9c01c8579a279f780e76f4edc2602d7926 (patch)
tree41a7a7994d7f454a41d97bb875e03b5b9bc48413 /shell-completion
parentMerge pull request #33032 from yuwata/sd-device-monitor-low-level-api (diff)
downloadsystemd-40d90c9c01c8579a279f780e76f4edc2602d7926.tar.xz
systemd-40d90c9c01c8579a279f780e76f4edc2602d7926.zip
localectl: introduce -l/--full option
Closes #33906.
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/localectl2
-rw-r--r--shell-completion/zsh/_localectl1
2 files changed, 2 insertions, 1 deletions
diff --git a/shell-completion/bash/localectl b/shell-completion/bash/localectl
index 1717842648..4fd91d1a34 100644
--- a/shell-completion/bash/localectl
+++ b/shell-completion/bash/localectl
@@ -36,7 +36,7 @@ _localectl() {
local i verb comps locale_vals
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local OPTS='-h --help --version --no-convert --no-pager --no-ask-password
- -H --host -M --machine'
+ -H --host -M --machine -l --full'
if __contains_word "$prev" $OPTS; then
case $prev in
diff --git a/shell-completion/zsh/_localectl b/shell-completion/zsh/_localectl
index 8c09841339..2504051713 100644
--- a/shell-completion/zsh/_localectl
+++ b/shell-completion/zsh/_localectl
@@ -95,4 +95,5 @@ _arguments \
'--no-ask-password[Do not prompt for password]' \
'(-H --host)'{-H+,--host=}'[Operate on remote host]:userathost:_sd_hosts_or_user_at_host' \
'(-M --machine)'{-M+,--machine=}'[Operate on local container]:machine' \
+ '(-l --full)'{-l,--full}'[Do not ellipsize the output]' \
'*::localectl commands:_localectl_commands'