From adbfde45cd684bbe0097325dc32e04a875ff0b22 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 20 Dec 2022 20:54:35 -0600 Subject: [PATCH] feat(zsh): add git-head-default alias --- dots/.config/zsh/config/profile/profile/aliases.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/dots/.config/zsh/config/profile/profile/aliases.zsh b/dots/.config/zsh/config/profile/profile/aliases.zsh index 3a0a9a88..334e2c0d 100644 --- a/dots/.config/zsh/config/profile/profile/aliases.zsh +++ b/dots/.config/zsh/config/profile/profile/aliases.zsh @@ -29,6 +29,7 @@ if command -v git >/dev/null 2>&1; then alias gwa="git worktree add" alias gwr="git worktree remove" alias git-remote="git config --get remote.origin.url" + alias git-head-default="git rev-parse --abbrev-ref origin/HEAD | cut -d '/' -f2" alias gbc="git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'" fi