]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash: add shell completion 36858/head
authorLennart Poettering <lennart@poettering.net>
Tue, 13 May 2025 10:34:25 +0000 (12:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 May 2025 13:39:57 +0000 (15:39 +0200)
No idea what I am doing, but this might be enough.

shell-completion/bash/journalctl
shell-completion/bash/systemd-run

index e7b8d57902d8ac914597699974e5cebaa8f3b0ba..c3e50a05a62b2810914a7b294f6c6a97e4dce771 100644 (file)
@@ -47,7 +47,7 @@ _journalctl() {
                       --show-cursor --dmesg -k --pager-end -e -r --reverse
                       --utc -x --catalog --no-full --force --dump-catalog
                       --flush --rotate --sync --no-hostname -N --fields
-                      --list-namespaces --list-invocations -I'
+                      --list-namespaces --list-invocations -I -v --verbose'
         [ARG]='-b --boot -D --directory --file -F --field -t --identifier
                       -T --exclude-identifier --facility -M --machine -o --output
                       -u --unit --user-unit -p --priority --root --case-sensitive
index 4524744bb5fff683207b3b10d96875ee6cb7cc5d..60017c1c1c05309db17fe731b1320191a26f8c8f 100644 (file)
@@ -42,7 +42,7 @@ _systemd_run() {
     )
     local OPTS="${opts_with_values[*]} --no-ask-password --scope -u --slice-inherit -r --remain-after-exit
                 --send-sighup -d --same-dir -t --pty -P --pipe -S --shell -q --quiet --ignore-failure
-                --on-clock-change --on-timezone-change --no-block --wait -G --collect --user --system -h --help --version"
+                --on-clock-change --on-timezone-change --no-block --wait -G --collect --user --system -h --help --version -v --verbose"
     local mode=--system
     local i
     for (( i=1; i <= COMP_CWORD; i++ )); do