]> git.rmz.io Git - dotfiles.git/commitdiff
zsh/git: complete gwa with remote branches noprefix
authorSamir Benmendil <me@rmz.io>
Wed, 15 Mar 2023 14:16:15 +0000 (14:16 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Dec 2023 17:37:33 +0000 (17:37 +0000)
Should probably add alternatives, i.e. local branches and tags

zsh/aliases/git.zsh

index f46ed9172b5ba989c844eabd40a2915faa9d14f7..15e5df15e58931089c73ff5225797d2275cba32f 100644 (file)
@@ -50,7 +50,7 @@ alias gsum='git branch --set-upstream-to=origin/HEAD'
 
 alias gwl='git worktree list'
 function gwa { git worktree add wt/$1 $1 }
 
 alias gwl='git worktree list'
 function gwa { git worktree add wt/$1 $1 }
-compdef _git gwa='_git_commits'
+compdef -e '__git_remote_branch_names_noprefix' gwa
 
 alias gcl='git config --list'
 alias gcp='git cherry-pick'
 
 alias gcl='git config --list'
 alias gcp='git cherry-pick'