forked from arunthampi/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
36 lines (27 loc) · 928 Bytes
/
bashrc
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
34
35
36
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export CLICOLOR=1
export EDITOR=vim
export GOPATH=$HOME/.go
# mk gopath
mkdir -p $HOME/.go
# Git Stuff
alias gst='git status'
alias gco='git checkout'
alias vimbi='vim +BundleInstall +qall'
alias bi='bundle install'
alias zt='zeus test'
# Git Prompt
function parse_git_dirty {
if ! [[ $(git status 2> /dev/null | tail -n1) =~ "nothing to commit" ]] ; then echo "*"; fi
}
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\]$ '
# tmux
alias tmux="TERM=screen-256color-bce tmux"
# PATH=$PATH:$HOME/.rvm/bin:bin # Add RVM to PATH for scripting
# export SSL_CERT_FILE=$HOME:.rvm/opt/curl-ca-bundle/share/ca-bundle.crt
### Added by the Heroku Toolbelt
# export PATH="/usr/local/heroku/bin:$GOPATH/bin:$PATH:$HOME/.rvm/bin"