-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbashrc
executable file
·53 lines (44 loc) · 1.4 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
source ~/.aliases
export EDITOR='vim'
# Add dotfiles bin path
export PATH="$PATH:$HOME/.bin"
# Python PATH
export PATH="`brew --prefix`/opt/python/libexec/bin:$PATH"
# Python virtualenv wrapper
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
export VIRTUALENVWRAPPER_PYTHON=$(which python)
export VIRTUALENVWRAPPER_VIRTUALENV=`brew --prefix`/bin/virtualenv
source `brew --prefix`/bin/virtualenvwrapper.sh
#
# Add bash_autocompletion for brew
#
if type brew &>/dev/null && [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
#
# If rbenv is installed, enable shims and autocompletion
#
if type rbenv &>/dev/null; then
eval "$(rbenv init -)"
fi
# PostgreSQL
export PATH="/Applications/Postgres.app/Contents/Versions/9.3/bin:$PATH"
#
# Load __git_ps1 function to add current branch to the PS1
# This may exist in different places depending on the version
# of Git installed and the method of which it was installed,
# so fallback to each one in turn.
#
if [ -f /usr/share/git-core/git-prompt.sh ]; then
source /usr/share/git-core/git-prompt.sh
elif [ -f /etc/bash_completion.d/git ]; then
source /etc/bash_completion.d/git
elif [ -f /usr/local/etc/bash_completion.d/git-prompt.sh ]; then
source /usr/local/etc/bash_completion.d/git-prompt.sh
fi
if type __git_ps1 &>/dev/null; then
export PS1='\h:\W$(__git_ps1 " (%s)")\$ '
else
export PS1='\h:\W\$ '
fi