ajouter les completions pour prel

This commit is contained in:
Jephte CLAIN 2015-03-13 07:10:25 +04:00
parent 2b2b7f5480
commit c5ba03b669
1 changed files with 11 additions and 0 deletions

View File

@ -36,6 +36,17 @@ if [ -n "$UTOOLS_BASH_COMPLETION" ]; then
COMPREPLY=($(compgen -W "$(__pdev_branches)" "$cur"))
}
complete -F _pdev pdev
function __prel_branches() {
git for-each-ref --format='%(refname:short)' refs/heads |
grep -E '^(master$|release-)'
}
function _prel() {
local cur
_get_comp_words_by_ref cur
COMPREPLY=($(compgen -W "$(__prel_branches)" "$cur"))
}
complete -F _prel prel
fi
;;
7*|wheezy*)