ADD git branch alias

This commit is contained in:
Nathan Dwarshuis 2023-01-07 14:26:21 -05:00
parent 1a4f89a8f9
commit 4c96de59bc
1 changed files with 2 additions and 0 deletions

View File

@ -251,6 +251,7 @@ alias uuuuu='cd ../../../../..'
diffver="$(diff -v | grep -o '\([0-9]\+\.[0-9]\+\)')"
if [ ${diffver//\.*/} -ge 3 ] && [ ${diffver//*\./} -ge 4 ]; then
alias diff='diff --color'
alias_if zdiff zdiff='zdiff --color'
fi
## don't assume the rest of these will exist
@ -314,6 +315,7 @@ alias_if git \
gcam="git commit -v -am" \
gci='git commit --interactive' \
gb='git branch' \
gbl='git branch --list' \
gco='git checkout' \
glol="git log --graph --decorate --pretty=oneline --abbrev-commit" \
glola="git log --graph --decorate --pretty=oneline --abbrev-commit --all" \