mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh, git] use Zsh aliases instead of gitconfig for my log format
This commit is contained in:
parent
0bd63cd767
commit
0d521c169b
3 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue