Created
July 15, 2013 21:29
-
-
Save mhulse/6003668 to your computer and use it in GitHub Desktop.
My .bash_profile/.bashrc setup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Google: | |
export PATH=${PATH}:$HOME/gsutil | |
# http://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows | |
# http://superuser.com/questions/137438/how-to-unlimited-bash-shell-history | |
# https://www.kernel.org/doc/man-pages/online/pages/man3/strftime.3.html | |
export HISTCONTROL=ignoredups:erasedups # no duplicate entries | |
export HISTSIZE=100000 # big big history | |
export HISTFILESIZE=100000 # big big history | |
export HISTTIMEFORMAT="%a %h %d - %r " # timestamps | |
shopt -s histappend # append to history, don't overwrite it | |
# Save and reload the history after each command finishes | |
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python virtual environments: | |
export WORKON_HOME=$HOME/.virtualenvs | |
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages' | |
export PIP_VIRTUALENV_BASE=$WORKON_HOME | |
export PIP_RESPECT_VIRTUALENV=true | |
if [[ -r /usr/local/bin/virtualenvwrapper.sh ]]; then | |
source /usr/local/bin/virtualenvwrapper.sh | |
else | |
echo "WARNING: Can't find virtualenvwrapper.sh" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment