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