Skip to content

Commit

Permalink
ZSH change format for gla
Browse files Browse the repository at this point in the history
  • Loading branch information
clairvy committed Apr 5, 2020
1 parent b53f780 commit 51d5f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ if whence -p git 2>&1 > /dev/null; then
alias ghh='git reset --hard'
alias gl='git log'
if [[ 2006 -le `git --version | awk '{print $3}' | awk -F. '{printf "%d%03d", $1, $2}' 2> /dev/null` ]]; then # 2.6 or more
alias gla='git log --graph --all --color --pretty="%x09%h %s %Cred%d%Creset %C(green)- %cd%Creset c:%cn:%ce a:%an:%ae" --date=format:"%Y/%m/%d %H:%M:%S%z"'
alias gla='git log --graph --all --color --pretty="%x09%h %s %Cred%d%Creset %C(green)- %ad%Creset c:%cn:%ce a:%an:%ae" --date=format:"%Y/%m/%d %H:%M:%S%z"'
else
alias gla='git log --graph --all --color --pretty="%x09%h %s %Cred%d%Creset %C(green)- %cr%Creset c:%cn:%ce a:%an:%ae"'
fi
Expand Down

0 comments on commit 51d5f9b

Please sign in to comment.