1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +02:00

bash: add shell completion

No idea what I am doing, but this might be enough.
This commit is contained in:
Lennart Poettering
2025-05-13 12:34:25 +02:00
parent bbc4cf83b7
commit 682413d577
2 changed files with 2 additions and 2 deletions

View 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

View 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