From: Samir Benmendil Date: Wed, 15 Mar 2023 14:16:15 +0000 (+0000) Subject: zsh/git: complete gwa with remote branches noprefix X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/00299171d7fb072166e6c9fc71f5e33294aeb6b5?ds=inline zsh/git: complete gwa with remote branches noprefix Should probably add alternatives, i.e. local branches and tags --- 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'