/
bash_profile
36 lines (25 loc) · 890 Bytes
/
bash_profile
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 PATH=/usr/local/bin:/usr/local/sbin:$PATH
export EDITOR='subl -w'
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\n🐙 \[\033[1;36m\]\W\[\033[32m\]\$(parse_git_branch) \[\033[1;33m\]>> \[\033[00m\]"
export PS1="\n\[\033[1;35m\]\W 🌈 🌈 🌈 \[\033[1;36m\]\$(parse_git_branch)\[\e[00m\] >> "
### SHIMS ###
# nodenv
if which nodenv > /dev/null; then eval "$(nodenv init -)"; fi
# rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# pyenv
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
#Aliases
alias e="subl"
alias ll="ls -a1"
alias chrome="open -a /Applications/Google\ Chrome.app/"
alias be="bundle exec"
export CLICOLOR=1
export LSCOLORS=FxFxBxDxCxegedabagacad
alias ls='ls -GFh'