From 950827106cd7d37b7affc2d37541c432cfae1194 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 17 Jul 2023 13:33:20 -0500 Subject: [PATCH] feat(zsh): add alias for git operations redirect to Neogit --- dots/.config/zsh/config/profile/profile/aliases.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dots/.config/zsh/config/profile/profile/aliases.zsh b/dots/.config/zsh/config/profile/profile/aliases.zsh index c9dab666..1f93eaad 100644 --- a/dots/.config/zsh/config/profile/profile/aliases.zsh +++ b/dots/.config/zsh/config/profile/profile/aliases.zsh @@ -10,6 +10,11 @@ fi ### Git ### if command -v git >/dev/null 2>&1; then + + if command -v nvim >/dev/null 2>&1; then + alias g="nvim -c 'Neogit'" + fi + alias gc="git commit" alias gcm="git commit -m" alias ga="git add"