Created
March 19, 2010 21:46
-
-
Save sigma/338230 to your computer and use it in GitHub Desktop.
workon completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef workon | |
_workon_envs () { | |
local expl devs | |
envs=( $(workon) ) | |
_wanted envs expl 'available envs' \ | |
compadd "$@" - "${(@)envs%%:*}" | |
} | |
_arguments \ | |
':environment:_workon_envs' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment