From 3b80b4b99af269c70cf2e289bf3dce5ffcf14292 Mon Sep 17 00:00:00 2001 From: Orien Vandenbergh Date: Wed, 10 Apr 2024 23:59:11 -0400 Subject: [PATCH] Add the definition for `git lg` for future use --- zsh/zshrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index 39c7fa2..e03695f 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -37,6 +37,7 @@ alias vim="nvim" alias vi="nvim" alias vimdiff="nvim -d" alias dlports="docker container ls --format table '{{.ID}}\t{{.Names}}\t{{.Ports}} -a'" +alias gpb=git-parent-branch export EDITOR=nvim # Prefer case sensitive autocomplete @@ -46,6 +47,11 @@ export AUTOSWITCH_DEFAULT_PYTHON=$(which python3) # My prompt reflects my venv automatically, don't pollute it by default export VIRTUAL_ENV_DISABLE_PROMPT=1 +# Use this to define the git lg alias +function define_gitlg { + git config --global alias.lg log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --abbrev-commit +} + # Code to maintain pagent connections to tmux through link drops #SOCK="/tmp/ssh-agent-$USER-tmux" #if test $SSH_AUTH_SOCK && [ $SSH_AUTH_SOCK != $SOCK ]; then @@ -68,7 +74,7 @@ zplug "lib/termsupport", from:oh-my-zsh zplug "tcnksm/docker-alias", use:zshrc zplug "MichaelAquilina/zsh-autoswitch-virtualenv" -#zplug "jqlang/jq", from: +#zplug "jqlang/jq" zplug "b4b4r07/httpstat", as:command, use:'(*).sh', rename-to:'$1' zplug "drwetter/testssl.sh", as:command, use:'(*).sh', rename-to:'$1' @@ -107,4 +113,3 @@ function git-parent-branch { | sed 's/.*\[\(.*\)\].*/\1/' \ | sed 's/[\^~].*//' } -alias gpb=git-parent-branch