Parent directory

_gsrb

315 bytes
 1#compdef gsrb
 2
 3_gsrb() {
 4	_arguments \
 5		'-i[interactive rebase]' \
 6		'-a[abort stack rebase]' \
 7		'-p[force push rebased branches]' \
 8		'1::base branch:__git_branch_names'
 9}
10
11__git_branch_names() {
12	local branches
13	branches=(${${(f)"$(git branch --format='%(refname:short)' 2>/dev/null)"}})
14	compadd -a branches
15}