-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
32 lines (27 loc) · 1.26 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
# Add paths that should have been there by default
export PATH=/usr/local/sbin:/usr/local/bin:${PATH}
export PATH="/usr/local/heroku/bin:$PATH" ## Added by the Heroku Toolbelt
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
export PATH="~/bin:$PATH"
# Load custom prompt
[[ -r ~/.bash_prompt ]] && [[ -f ~/.bash_prompt ]] && source ~/.bash_prompt
# Erase duplicates in history
# Other possible values:
# ignoredups ignores consecutive dups
# ignorespace ignores commands staring with space
# ignoreboth ignoredups & ignorespace
export HISTCONTROL=erasedups
# Store 100k history entries
export HISTSIZE=100000
# Append to the history file when exiting instead of overwriting it
shopt -s histappend
# Source bashrc commands local to this machine. Load this close to last so that one can change the above.
[[ -r ~/.bashrc.local ]] && [[ -f ~/.bashrc.local ]] && source ~/.bashrc.local
# If we've got it, initialitze rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# virtualenv
export VIRTUALENVWRAPPER_PYTHON=/usr/local/opt/python/libexec/bin/python
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
export WORKON_HOME=~/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh