Add completions to git cb.
This commit is contained in:
parent
24582b2cf9
commit
67f467e325
4 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,6 @@
|
||||||
autoSquash = true
|
autoSquash = true
|
||||||
[alias]
|
[alias]
|
||||||
publish = !git pull && git push
|
publish = !git pull && git push
|
||||||
cb = !git-tmp-switch.sh
|
|
||||||
[push]
|
[push]
|
||||||
default = current
|
default = current
|
||||||
autoSetupRemote = true
|
autoSetupRemote = true
|
||||||
|
|
6
.zfunc/_git-cb
Normal file
6
.zfunc/_git-cb
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#compdef git-cb
|
||||||
|
|
||||||
|
_git-cb() {
|
||||||
|
_arguments \
|
||||||
|
'1:branch:__git_branch_names'
|
||||||
|
}
|
1
.zshrc
1
.zshrc
|
@ -52,3 +52,4 @@ bindkey -s ^f "tmux-sessionizer\n"
|
||||||
source ~/.aliases
|
source ~/.aliases
|
||||||
fpath+=~/.zfunc
|
fpath+=~/.zfunc
|
||||||
autoload -U compinit; compinit -d
|
autoload -U compinit; compinit -d
|
||||||
|
compdef _git git-cb
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue