Update git diff aliases

This commit is contained in:
Jeremy Gardais 2022-11-07 12:05:26 +01:00
parent 73811d30c8
commit e98ed2fcb7
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 4 additions and 2 deletions

6
zshrc
View File

@ -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