From 7d7762cd477a35d5409f68394dc5a498eb5a29b8 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Fri, 11 Mar 2022 08:31:02 +0000 Subject: [PATCH] zsh/aliases: add aliases for worktree --- zsh/aliases/git.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/aliases/git.zsh b/zsh/aliases/git.zsh index 043649f..8f68e81 100644 --- a/zsh/aliases/git.zsh +++ b/zsh/aliases/git.zsh @@ -48,6 +48,10 @@ alias gbdm='git branch --merged | grep -ve "\*" -e "\+" -e "master" | xargs git alias gsu='git branch --set-upstream-to' 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' + alias gcl='git config --list' alias gcp='git cherry-pick' -- 2.48.1