This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
colorread(){ | |
case "$1" in | |
red|alert) local COLOR=$(printf "\\e[1;31m");; | |
green|attention) local COLOR=$(printf "\\e[1;32m");; | |
yellow|warn) local COLOR=$(printf "\\e[1;33m");; | |
blue|question) local COLOR=$(printf "\\e[1;34m");; | |
purple|info) local COLOR=$(printf "\\e[1;35m");; | |
cyan|notice) local COLOR=$(printf "\\e[1;36m");; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# My favourite flavour of git lg | |
git config --global alias.lga "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) -%C(bold yellow)%d%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset) %C(bold green)(%ar)%C(reset)' --all --date-order" | |
git config --global alias.lg "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) -%C(bold yellow)%d%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset) %C(bold green)(%ar)%C(reset)' --date-order" | |
# Rebase by default for all new branches | |
git config branch.autosetuprebase always | |
# Remember login details | |
git config --global credential.helper "store" |