summaryrefslogtreecommitdiff
path: root/shell-completion/bash/loginctl
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-21 14:20:29 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-21 18:35:27 -0500
commit841aa8c0b484b96654b95d3c4e936e37da4c7dda (patch)
treee69969003e2c5674274b724592bfc8d8051c45d6 /shell-completion/bash/loginctl
parent40be878abb86308f1aa025f5bbc77dff16383025 (diff)
loginctl,shell-completions: fix listing of sessions/users/seats
Diffstat (limited to 'shell-completion/bash/loginctl')
-rw-r--r--shell-completion/bash/loginctl6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell-completion/bash/loginctl b/shell-completion/bash/loginctl
index b0816a3b86..7263f7f7bf 100644
--- a/shell-completion/bash/loginctl
+++ b/shell-completion/bash/loginctl
@@ -24,9 +24,9 @@ __contains_word () {
done
}
-__get_all_sessions () { loginctl list-sessions | { while read -r a b; do printf "%s\n" "$a"; done; } ; }
-__get_all_users () { loginctl list-users | { while read -r a b; do printf "%s\n" "$b"; done; } ; }
-__get_all_seats () { loginctl list-seats | { while read -r a b; do printf "%s\n" "$a"; done; } ; }
+__get_all_sessions () { loginctl --no-legend list-sessions | { while read -r a b; do printf "%s\n" "$a"; done; } ; }
+__get_all_users () { loginctl --no-legend list-users | { while read -r a b; do printf "%s\n" "$b"; done; } ; }
+__get_all_seats () { loginctl --no-legend list-seats | { while read -r a b; do printf "%s\n" "$a"; done; } ; }
_loginctl () {
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}