Skip to content

Instantly share code, notes, and snippets.

@vad
Created September 26, 2012 06:07
Show Gist options
  • Save vad/3786366 to your computer and use it in GitHub Desktop.
Save vad/3786366 to your computer and use it in GitHub Desktop.
uwsgi options completion in zsh
# uwsgi completion
_uwsgi_help() {
reply=(`uwsgi --help|tail -n +2|awk '{print $1}'|awk -F '|' '{print $1; if ($2) {print $2}}'`)
}
compctl -K _uwsgi_help -f uwsgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment