summaryrefslogtreecommitdiffstats
path: root/shell-completion/bash/systemd-run
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2020-04-17 11:40:03 +0200
committerLennart Poettering <lennart@poettering.net>2020-04-17 19:15:49 +0200
commit1cabd2d0c56b7de73e4a4fb645f3bbed4a528d2c (patch)
treed51abd3c61a38ce23442937804e4aceb0da058b3 /shell-completion/bash/systemd-run
parentMerge pull request #15459 from keszybz/remove-seat_can_multi_session (diff)
downloadsystemd-1cabd2d0c56b7de73e4a4fb645f3bbed4a528d2c.tar.xz
systemd-1cabd2d0c56b7de73e4a4fb645f3bbed4a528d2c.zip
systemctl: hide first column with --plain instead of --no-legend
Hiding the first column, which may contain bullet circles, with --no-legend is undocumented and potentially unexpected. On the other hand, not printing bullet circles with --plain is documented so hiding the column with that switch is sensible. The combination "--full --no-legend --no-pager --plain" is appropriate for automated processing of systemctl output.
Diffstat (limited to 'shell-completion/bash/systemd-run')
-rw-r--r--shell-completion/bash/systemd-run2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/systemd-run b/shell-completion/bash/systemd-run
index 71692aa19c..88f4443ad9 100644
--- a/shell-completion/bash/systemd-run
+++ b/shell-completion/bash/systemd-run
@@ -18,7 +18,7 @@
__systemctl() {
local mode=$1; shift 1
- systemctl $mode --full --no-legend "$@"
+ systemctl $mode --full --no-legend --no-pager --plain "$@"
}
__get_slice_units () { __systemctl $1 list-units --all -t slice \