Skip to content

Instantly share code, notes, and snippets.

@uu59
Created March 31, 2013 17:23
Show Gist options
  • Save uu59/5281350 to your computer and use it in GitHub Desktop.
Save uu59/5281350 to your computer and use it in GitHub Desktop.
bundle completion
__bundle() {
local cachefile="/tmp/__bundle_completion"
if [ ! -f $cachefile ];then
echo $(bundle -h | col -b | grep -o "bundle .*(1)" | sed 's/(1)//g' | sed 's/bundle //g') > $cachefile
fi
COMPREPLY=($(compgen -W "$(cat $cachefile)"))
}
complete -F __bundle bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment