From 00299171d7fb072166e6c9fc71f5e33294aeb6b5 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Wed, 15 Mar 2023 14:16:15 +0000 Subject: [PATCH] zsh/git: complete gwa with remote branches noprefix Should probably add alternatives, i.e. local branches and tags --- zsh/aliases/git.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/aliases/git.zsh b/zsh/aliases/git.zsh index f46ed91..15e5df1 100644 --- a/zsh/aliases/git.zsh +++ b/zsh/aliases/git.zsh @@ -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 } -compdef _git gwa='_git_commits' +compdef -e '__git_remote_branch_names_noprefix' gwa alias gcl='git config --list' alias gcp='git cherry-pick' -- 2.48.1