Add the definition for git lg for future use

This commit is contained in:
Orien Vandenbergh 2024-04-10 23:59:11 -04:00
parent e94da499b4
commit 3b80b4b99a

View File

@ -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