Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (30 sloc) 0.725 kB
#!/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 <sw@netcetera.org>
_gibo()
{
local_repo="$HOME/.gitignore-boilerplates"
if [ -e "$local_repo" ]; then
compadd -M 'm:{[:lower:]}={[:upper:]}' $( find "$local_repo" -name "*.gitignore" -exec basename \{\} .gitignore \; )
fi
}
compdef _gibo gibo
Jump to Line
Something went wrong with that request. Please try again.