Create a wrapper around ssh
To check if we're trying to ssh to a VM so the VM can be booted if it is off Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
b1fa0acd1f
commit
f4a1f40eff
|
@ -0,0 +1,15 @@
|
|||
#compdef ssh.zsh
|
||||
|
||||
function _ssh.zsh() {
|
||||
_arguments \
|
||||
':args: _alternative
|
||||
"hosts:hosts: _ssh_hosts"
|
||||
"users:users: _ssh.zsh_users -qS@"
|
||||
"domains:domains:($(virsh list --all --name))"'
|
||||
}
|
||||
|
||||
_ssh.zsh_users () {
|
||||
_combination -s '[:@]' my-accounts users-hosts users "$@"
|
||||
}
|
||||
|
||||
_ssh.zsh "$@"
|
Loading…
Reference in New Issue