if [[ -n "$state" ]]; then
if compset -P '*@'; then
- _wanted hosts expl host _samhain_all_hosts -S: && ret=0
+ _wanted hosts expl host _samhain_all_hosts && ret=0
else
_alternative \
- 'hosts:: _samhain_all_hosts -S:' \
+ 'hosts:: _samhain_all_hosts' \
'users:: _samhain_users -qS@' && ret=0
fi
fi
}
_samhain_users () {
- _tags users && _combination -s '[@]' my-accounts users-hosts users "$@"
+ _tags users && _combination -s '@' my-accounts users-hosts users "$@"
}
_samhain_all_hosts () {
- _tags hosts && _combination -s '[@]' my-accounts users-hosts hosts "$@"
+ _tags hosts && _combination -s '@' my-accounts users-hosts hosts "$@"
}
_reinit-samhain-one "$@"