complétion pour pdev

This commit is contained in:
Jephte CLAIN 2015-03-06 07:25:25 +04:00
parent d5d5225ea9
commit 69548d0d76
1 changed files with 13 additions and 0 deletions

View File

@ -23,6 +23,19 @@ if [ -n "$UTOOLS_BASH_COMPLETION" ]; then
fi
}
complete -F _nutools_h -o default ruinst runs rruns
function __pdev_branches() {
git for-each-ref --format='%(refname:short)' refs/heads |
grep -vF master |
grep -v '^release-' |
grep -v '^hotfix-'
}
function _pdev() {
local cur
_get_comp_words_by_ref cur
COMPREPLY=($(compgen -W "$(__pdev_branches)" "$cur"))
}
complete -F _pdev pdev
fi
;;
7*|wheezy*)