Created
March 31, 2013 17:23
-
-
Save uu59/5281350 to your computer and use it in GitHub Desktop.
bundle 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
__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