mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
zsh: loginctl: complete alias 'self'
This commit is contained in:
parent
e3820eeaf1
commit
0fb8f02506
@ -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]=()
|
||||
|
Loading…
x
Reference in New Issue
Block a user