#!/zsh
# 
# Zsh completion for gibo
# 
# INSTALLATION
# 
# First install gibo from 
# https://github.com/simonwhitaker/gitignore-boilerplates
# 
# Make sure autocompletion is enabled in your shell, typically
# by adding this to your .zshrc:
# 
#     autoload -U compinit && compinit
# 
# Then copy this file somewhere (e.g. ~/.gibo-completion.zsh) and put the
# following in your .zshrc:
# 
#     source ~/.gibo-completion.zsh
# 
# CREDITS
# 
# Written by Simon Whitaker <simon@goosoftware.co.uk>

_gibo()
{
    reply=($( find $HOME/.gitignore-boilerplates -name "*.gitignore" -exec basename \{\} .gitignore \; ))
}
compctl -K _gibo gibo

#!/zsh
# 
# Zsh completion for gibo
# 
# INSTALLATION
# 
# First install gibo from 
# https://github.com/simonwhitaker/gitignore-boilerplates
# 
# Make sure autocompletion is enabled in your shell, typically
# by adding this to your .zshrc:
# 
#     autoload -U compinit && compinit
# 
# Then copy this file somewhere (e.g. ~/.gibo-completion.zsh) and put the
# following in your .zshrc:
# 
#     source ~/.gibo-completion.zsh
# 
# CREDITS
# 
# Written by Simon Whitaker <simon@goosoftware.co.uk>

_gibo()
{
    compadd $( find $HOME/.gitignore-boilerplates -name "*.gitignore" -exec basename \{\} .gitignore \; )
}
compdef _gibo gibo

Use compdef instead of compctl for zsh completion
Use compdef instead of compctl for zsh completion
