[zsh, git] use Zsh aliases instead of gitconfig for my log format

This commit is contained in:
Dmytro Meleshko 2019-12-26 00:04:52 +02:00
parent 0bd63cd767
commit 0d521c169b
3 changed files with 7 additions and 6 deletions

View file

@ -4,11 +4,6 @@
[pull]
rebase = true
[log]
abbrevCommit = true
[format]
pretty = %C(auto)%h%C(reset)%C(auto)%d%C(reset) %s %C(green)- %an %C(blue)(%ar)%C(reset)
[core]
pager = diff-so-fancy | less --tabs=4 --RAW-CONTROL-CHARS

View file

@ -70,3 +70,9 @@ alias e="$EDITOR"
if [[ "$EDITOR" == *vim ]]; then
alias es="e -S"
fi
# some amendments to Oh My Zsh's git plugin
# https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/git.plugin.zsh
alias glo="git log --decorate --abbrev-commit --date=relative --pretty='%C(auto)%h%C(reset)%C(auto)%d%C(reset) %s %C(green)- %an %C(blue)(%ad)%C(reset)'"
alias glog='glo --graph'
alias gloga='glog --all'

View file

@ -33,7 +33,7 @@ autoload -U colors && colors
_perf_timer_start "total"
for script in functions options path env aliases plugins completion zle prompt colorscheme; do
for script in functions options path env plugins aliases completion zle prompt colorscheme; do
_perf_timer_start "$script.zsh"
source "$ZSH_DOTFILES/$script.zsh"
_perf_timer_stop "$script.zsh"