-
Notifications
You must be signed in to change notification settings - Fork 1
/
bashrc
63 lines (47 loc) · 1.39 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# -*- mode: shell -*-
# vi: filetype=sh:
test -f /etc/bash_completion.d/git && source /etc/bash_completion.d/git
_git_ps1_maybe() {
if test -n "`which __git_ps1`"
then
[[ ! "$(pwd)" = /vagrant/* ]] && GIT_PS1_SHOWDIRTYSTATE=true
__git_ps1
fi
}
# \e[0;32m = green, \e[1;33m = bold yellow, \e[1;36 = bold cyan, \e[m = reset
PS1='\n\[\e[0;32m\]\u@\h\[\e[m\] $? \[\e[1;33m\]\w\[\e[1;36m\]$(_git_ps1_maybe)\n\[\e[0;32m\]\$\[\e[m\] '
export PATH=$HOME/local/bin:$PATH
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
if [[ -d $HOME/.rvm ]]
then
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
fi
# virtualenv wrapper
if [[ -d $HOME/.virtualenvs ]]
then
export WORKON_HOME=$HOME/.virtualenvs
fi
if [[ -e /usr/bin/virtualenvwrapper.sh ]]
then
source /usr/bin/virtualenvwrapper.sh
fi
test -f $HOME/.bash_aliases && source $HOME/.bash_aliases
##########################
# Formerly in bash_profile
export EDITOR=vim
export LESS="-iFRSX"
export PATH=$PATH:$HOME/bin
export C_INCLUDE_PATH=/usr/local/include:/usr/include
export CPLUS_INCLUDE_PATH=$C_INCLUDE_PATH
if [[ -d /usr/lib/jvm/java-6-sun ]]
then
export JAVA_HOME="/usr/lib/jvm/java-6-sun"
fi
test -x /usr/games/fortune && echo && /usr/games/fortune -s
if test `uname -a | cut -d " " -f 1` = Darwin
then
alias ls='ls -G'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
fi