Add completions to git cb.

This commit is contained in:
Sebastian Bugge 2025-07-15 10:12:20 +02:00
parent 24582b2cf9
commit 67f467e325
4 changed files with 7 additions and 1 deletions

View file

@ -11,7 +11,6 @@
autoSquash = true
[alias]
publish = !git pull && git push
cb = !git-tmp-switch.sh
[push]
default = current
autoSetupRemote = true

6
.zfunc/_git-cb Normal file
View file

@ -0,0 +1,6 @@
#compdef git-cb
_git-cb() {
_arguments \
'1:branch:__git_branch_names'
}

1
.zshrc
View file

@ -52,3 +52,4 @@ bindkey -s ^f "tmux-sessionizer\n"
source ~/.aliases
fpath+=~/.zfunc
autoload -U compinit; compinit -d
compdef _git git-cb