From 022f30b068717641bc91c4babcc4ea692823cc45 Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Mon, 26 Sep 2011 23:23:34 +0200 Subject: [PATCH] #23 github: complete users using _users too --- _github | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/_github b/_github index 796fef2..2bf9f75 100644 --- a/_github +++ b/_github @@ -226,8 +226,15 @@ _github() { (( $+functions[_github_users] )) || _github_users() { + _alternative \ + 'users:user:_users' \ + 'github-network-users:github network user:_github_network_users' +} + +(( $+functions[_github_network_users] )) || +_github_network_users() { local users; users=(${(f)"$(_call_program users $service network list 2>/dev/null)"}) - _describe -t users 'user' users "$@" + _describe -t github-network-users 'github network user' users "$@" } (( $+functions[_github_repos] )) ||