mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
journalctl: add -W as short for --no-hostname
--no-hostname is one of the switches I use very often. In particular, when looking at CI logs, the hostname is almost never interesting. -H is not yet used in journalctl, because journal operates locally, but will want it if display of remote journals is implemented. Use -W.
This commit is contained in:
@@ -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 --relinquish-var
|
||||
--smart-relinquish-var --no-hostname -N --fields
|
||||
--smart-relinquish-var --no-hostname -W -N --fields
|
||||
--list-namespaces --list-invocations -I -v --verbose'
|
||||
[ARG]='-b --boot -D --directory -i --file -F --field -t --identifier
|
||||
-T --exclude-identifier --facility -M --machine -o --output
|
||||
|
||||
@@ -99,7 +99,7 @@ _arguments -s \
|
||||
'(- *)'{-h,--help}'[Show this help]' \
|
||||
'(- *)--version[Show package version]' \
|
||||
'--no-pager[Do not pipe output into a pager]' \
|
||||
--no-hostname"[Don't show the hostname of log messages]" \
|
||||
'(-W --no-hostname)'{-W,--no-hostname}"[Don't show the hostname of log messages]" \
|
||||
'(-l --full)'{-l,--full}'[Show long fields in full]' \
|
||||
'(-a --all)'{-a,--all}'[Show all fields, including long and unprintable]' \
|
||||
'(-f --follow)'{-f,--follow}'[Follow journal]' \
|
||||
|
||||
Reference in New Issue
Block a user