shell-completion: support -i option for journalctl

Follow-up for dde54b8a85.
This commit is contained in:
Yu Watanabe
2025-08-26 19:24:39 +01:00
committed by Luca Boccassi
parent c663d7e3ea
commit 5bb434e317
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ _journalctl() {
--utc -x --catalog --no-full --force --dump-catalog
--flush --rotate --sync --no-hostname -N --fields
--list-namespaces --list-invocations -I -v --verbose'
[ARG]='-b --boot -D --directory --file -F --field -t --identifier
[ARG]='-b --boot -D --directory -i --file -F --field -t --identifier
-T --exclude-identifier --facility -M --machine -o --output
-u --unit --user-unit -p --priority --root --case-sensitive
--namespace --invocation'
@@ -73,7 +73,7 @@ _journalctl() {
comps=$(compgen -d -- "$cur")
compopt -o filenames
;;
--file)
--file|-i)
comps=$(compgen -f -- "$cur")
compopt -o filenames
;;