--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'
comps=$(compgen -d -- "$cur")
compopt -o filenames
;;
- --file)
+ --file|-i)
comps=$(compgen -f -- "$cur")
compopt -o filenames
;;
# Build arguments for "journalctl" to be used in completion.
# Use both --user and --system modes, they are not exclusive.
local -a _modes; _modes=(--user --system)
-local -a _modes_with_arg; _modes_with_arg=(--directory -D --file -M --machine --root)
+local -a _modes_with_arg; _modes_with_arg=(--directory -D -i --file -M --machine --root)
typeset -a _sys_service_mgr
local w k v i=0 n=$#words
while (( i++ < n )); do
'(--directory -D -M --machine --root --file)'{-M+,--machine=}'[Operate on local container]:machines:_sd_machines' \
'(--directory -D -M --machine --root --file)'{-D+,--directory=}'[Show journal files from directory]:directories:_directories' \
'(--directory -D -M --machine --root --file)--root=[Operate on catalog hierarchy under specified directory]:directories:_directories' \
- '(--directory -D -M --machine --root)*--file=[Operate on specified journal files]:file:_files' \
+ '(--directory -D -M --machine --root)*'{-i+,--file=}'[Operate on specified journal files]:file:_files' \
'--disk-usage[Show total disk usage]' \
'--dump-catalog[Dump messages in catalog]' \
'--flush[Flush all journal data from /run into /var]' \