Skip to content

Instantly share code, notes, and snippets.

@cheeaun
Created December 7, 2010 02:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cheeaun/731384 to your computer and use it in GitHub Desktop.
Save cheeaun/731384 to your computer and use it in GitHub Desktop.
Backup of my bash configs
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment