From 63f2683d758a90a04558104aba949694e0b456dd Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Sat, 4 Dec 2021 17:51:55 +0100 Subject: Prettier git log alias --- .config/zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config') diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 803ea88..70e4597 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' -- cgit v1.2.3-70-g09d2