ajouter les completions pour prel
This commit is contained in:
parent
2b2b7f5480
commit
c5ba03b669
|
@ -36,6 +36,17 @@ if [ -n "$UTOOLS_BASH_COMPLETION" ]; then
|
||||||
COMPREPLY=($(compgen -W "$(__pdev_branches)" "$cur"))
|
COMPREPLY=($(compgen -W "$(__pdev_branches)" "$cur"))
|
||||||
}
|
}
|
||||||
complete -F _pdev pdev
|
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
|
fi
|
||||||
;;
|
;;
|
||||||
7*|wheezy*)
|
7*|wheezy*)
|
||||||
|
|
Loading…
Reference in New Issue