[zsh, git] use Zsh aliases instead of gitconfig for my log format
This commit is contained in:
parent
0bd63cd767
commit
0d521c169b
|
@ -4,11 +4,6 @@
|
||||||
[pull]
|
[pull]
|
||||||
rebase = true
|
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]
|
[core]
|
||||||
pager = diff-so-fancy | less --tabs=4 --RAW-CONTROL-CHARS
|
pager = diff-so-fancy | less --tabs=4 --RAW-CONTROL-CHARS
|
||||||
|
|
||||||
|
|
|
@ -70,3 +70,9 @@ alias e="$EDITOR"
|
||||||
if [[ "$EDITOR" == *vim ]]; then
|
if [[ "$EDITOR" == *vim ]]; then
|
||||||
alias es="e -S"
|
alias es="e -S"
|
||||||
fi
|
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'
|
||||||
|
|
|
@ -33,7 +33,7 @@ autoload -U colors && colors
|
||||||
|
|
||||||
_perf_timer_start "total"
|
_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"
|
_perf_timer_start "$script.zsh"
|
||||||
source "$ZSH_DOTFILES/$script.zsh"
|
source "$ZSH_DOTFILES/$script.zsh"
|
||||||
_perf_timer_stop "$script.zsh"
|
_perf_timer_stop "$script.zsh"
|
||||||
|
|
Loading…
Reference in New Issue