public
Created

Backup of my bash configs

  • Download Gist
.bash_profile
Shell
1 2 3
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
.bashrc
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
export PATH="/usr/local/mysql/bin:/usr/local/sbin:/usr/local/share/npm/bin:$PATH"
export NODE_PATH="/usr/local/lib/node"
source ~/.git-completion.bash
 
# Git Prompt
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"
}
 
export PS1='\u:\[\033[31;40m\]\w\[\033[0;33m\]$(parse_git_branch)\[\e[0m\]$ '
 
# colors for terminal
 
export CLICOLOR='true'
export LSCOLORS="gxfxcxdxbxegedabagacad"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
 
# Google's Go
 
export GOROOT=$HOME/go
export GOOS=darwin
export GOARCH=386
export GOBIN=$HOME/bin
export PATH=$GOBIN:$PATH
 
# git
 
alias gs='git status'
alias gco='git checkout'

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.