diff options
author | Adam <adam.moloney.stuck@gmail.com> | 2021-12-04 17:51:55 +0100 |
---|---|---|
committer | adamstuck <adam.moloney.stuck@gmail.com> | 2021-12-04 18:08:49 +0100 |
commit | 8ae3c4d7cd6389aa70f8368ff5f32326590c3596 (patch) | |
tree | 9b5076417085bdd4150f71fae994236965d76986 | |
parent | 47fe2ede669c5a52f0b42273146f41ebed59a9c8 (diff) |
Prettier git log alias
-rw-r--r-- | .config/zsh/.zshrc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 38c190f..4d29724 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -38,7 +38,7 @@ alias lh="exa -1dI '.|..' .*" alias g='git' alias gs='git status' -alias lg='git log' +alias lg="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(cyan)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all" alias com='git commit' alias sth='git stash' alias clone='git clone' @@ -48,7 +48,7 @@ alias gpl='git pull' alias config='/usr/bin/git --git-dir=/home/adam/.cfg/ --work-tree=/home/adam' alias cs='config status' -alias clg='config log' +alias clg="config log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(cyan)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all" alias ccom='config commit' alias csth='config stash' alias cu='config add -u' |