From e98ed2fcb75d932dfcb465051017f9c584ef1dde Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 7 Nov 2022 12:05:26 +0100 Subject: [PATCH] Update git diff aliases --- zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 71e929a..78b3131 100644 --- a/zshrc +++ b/zshrc @@ -187,8 +187,10 @@ alias pbin='~/repos/cpaste/cpaste --sourcecode --expire 1week --file ' ## Git aliases − Try to prefix with 'gg' {{{ ### Get status of the repo alias ggstatus='git status' -### Show differences between changes and index -alias ggdiff='git diff' +### Show differences between changes and index and ensure to display colors even with a pipe +alias ggdiff='git diff --color=always' +### Show differences between changes and index WITHOUT any colors +alias ggnocolordiff='git diff --color=never' ### Show only words/characters differences alias ggwdiff='git diff --color-words=. --patience' ### Add changes to index