update
This commit is contained in:
parent
209b0cc260
commit
5b127cca55
3 changed files with 95 additions and 2 deletions
15
compdef/_sfs
Normal file
15
compdef/_sfs
Normal file
|
@ -0,0 +1,15 @@
|
|||
#compdef sfs
|
||||
|
||||
if compset -P 1 '*:'; then
|
||||
_remote_files -- ssh
|
||||
elif compset -P 1 '*@'; then
|
||||
_wanted hosts expl host _ssh_hosts -r: -S:
|
||||
else
|
||||
_alternative \
|
||||
'hosts:remote host name:_ssh_hosts -r: -S:' \
|
||||
'users:user:_ssh_users -qS@'
|
||||
fi
|
||||
|
||||
_ssh_users () {
|
||||
_combination -s '[:@]' my-accounts users-hosts users "$@"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue