summaryrefslogtreecommitdiff
path: root/shell-completion/zsh/_loginctl
diff options
context:
space:
mode:
authorRonan Pigott <rpigott@berkeley.edu>2020-09-30 00:11:48 -0700
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-30 09:24:03 +0200
commit0fb8f025065ddaf3d197cce6776962ff64de5300 (patch)
treecbe25e169b9eb7145b5bccb71e200e77400d4f71 /shell-completion/zsh/_loginctl
parente3820eeaf11f3b4614cbdfbc85675bc16a486e21 (diff)
downloadsystemd-0fb8f025065ddaf3d197cce6776962ff64de5300.tar.gz
zsh: loginctl: complete alias 'self'
Diffstat (limited to 'shell-completion/zsh/_loginctl')
-rw-r--r--shell-completion/zsh/_loginctl6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell-completion/zsh/_loginctl b/shell-completion/zsh/_loginctl
index b9ccbedf75..feb7016770 100644
--- a/shell-completion/zsh/_loginctl
+++ b/shell-completion/zsh/_loginctl
@@ -35,6 +35,9 @@ for fun in session-status show-session activate lock-session unlock-session term
_loginctl_$fun() {
local -a _sys_all_sessions{,_descr}
+ _sys_all_sessions=( "self" )
+ _sys_all_sessions_descr=( "self:alias for the current session" )
+
_loginctl_all_sessions
for _ignore in $words[2,-1]; do
_sys_all_sessions[(i)$_ignore]=()
@@ -81,6 +84,9 @@ done
_loginctl_seats() {
local -a _sys_all_seats{,_descr}
+ _sys_all_seats=( "self" )
+ _sys_all_seats_descr=( "self:alias for the current seat" )
+
_loginctl_all_seats
for _ignore in $words[2,-1]; do
_sys_all_seats[(i)$_ignore]=()