Created
December 7, 2010 02:47
-
-
Save cheeaun/731384 to your computer and use it in GitHub Desktop.
Backup of my bash configs
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
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi |
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
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