complétion pour pdev
This commit is contained in:
parent
d5d5225ea9
commit
69548d0d76
|
@ -23,6 +23,19 @@ if [ -n "$UTOOLS_BASH_COMPLETION" ]; then
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
complete -F _nutools_h -o default ruinst runs rruns
|
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
|
fi
|
||||||
;;
|
;;
|
||||||
7*|wheezy*)
|
7*|wheezy*)
|
||||||
|
|
Loading…
Reference in New Issue