Happy Mac
brew install git bash-completion
Get happy Git colors. Paste the following into your ~/.gitconfig
file:
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
Create a ~/.gitexcludes
file and paste in this:
.DS_Store
Bash life
# Preferred implementations
alias cp='cp -iv'
alias mv='mv -iv'
alias mkdir='mkdir -pv'
alias ll='ls -FGlAhp'
alias less='less -FSRXc'
# Set default blocksize for ls, df
export BLOCKSIZE=1k
# bash-completion
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
export GITAWAREPROMPT=~/.bash/git-aware-prompt
source "${GITAWAREPROMPT}/main.sh"
export GIT_PS1_SHOWUNTRACKEDFILES="true"
export GIT_PS1_SHOWDIRTYSTATE="true"
export PS1="\[$(tput setaf 4)\]\t \[$(tput setaf 2)\]\w\[$(tput setaf 3)\]\$(__git_ps1)\[$(tput setaf 2)\]\\$\[$(tput sgr0)\] "