chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
core: remove systemd_running_as lookup functions
[elogind.git]
/
shell-completion
/
zsh
/
_sd_machines
1
#autoload
2
__get_machines () {
3
machinectl --full --no-legend --no-pager list | {while read -r a b; do echo $a; done;};
4
}
5
6
local -a _machines
7
_machines=("${(fo)$(__get_machines)}")
8
typeset -U _machines
9
if [[ -n "$_machines" ]]; then
10
_describe 'machines' _machines
11
else
12
_message 'no machines'
13
fi