diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-21 14:20:29 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-21 18:35:27 -0500 |
commit | 841aa8c0b484b96654b95d3c4e936e37da4c7dda (patch) | |
tree | e69969003e2c5674274b724592bfc8d8051c45d6 /shell-completion/zsh | |
parent | 40be878abb86308f1aa025f5bbc77dff16383025 (diff) |
loginctl,shell-completions: fix listing of sessions/users/seats
Diffstat (limited to 'shell-completion/zsh')
-rw-r--r-- | shell-completion/zsh/_loginctl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell-completion/zsh/_loginctl b/shell-completion/zsh/_loginctl index a22fc9948a..740629d53d 100644 --- a/shell-completion/zsh/_loginctl +++ b/shell-completion/zsh/_loginctl @@ -1,8 +1,8 @@ #compdef loginctl -_loginctl_all_sessions(){_sys_all_sessions=($(loginctl list-sessions | { while read a b; do echo " $a"; done; }) )} -_loginctl_all_users() {_sys_all_users=( $(loginctl list-users | { while read a b; do echo " $a"; done; }) )} -_loginctl_all_seats() {_sys_all_seats=( $(loginctl list-seats | { while read a b; do echo " $a"; done; }) )} +_loginctl_all_sessions(){_sys_all_sessions=($(loginctl --no-legend list-sessions | { while read a b; do echo " $a"; done; }) )} +_loginctl_all_users() {_sys_all_users=( $(loginctl --no-legend list-users | { while read a b; do echo " $a"; done; }) )} +_loginctl_all_seats() {_sys_all_seats=( $(loginctl --no-legend list-seats | { while read a b; do echo " $a"; done; }) )} # Completion functions for SESSIONS for fun in session-status show-session activate lock-session unlock-session terminate-session kill-session ; do |