Skip to content

Instantly share code, notes, and snippets.

@jsplink
Last active August 29, 2015 14:17
Show Gist options
  • Save jsplink/7b6bd84081c481714dcb to your computer and use it in GitHub Desktop.
Save jsplink/7b6bd84081c481714dcb to your computer and use it in GitHub Desktop.
.bash_profile
# Specifically for MaxOSX
# ==================
# TERMINAL CONFIGS
# ==================
# color scheme
PS1='\[\033[0;32m\]\u@\h\[\033[0;36m\] \w\[\033[00m\]: '
# bash history modifications
shopt -s histappend
HISTFILESIZE=1000000
HISTSIZE=100000
HISTCONTROL=ignoreboth
HISTIGNORE='ls:bg:fg:history'
HISTTIMEFORMAT='%F %T '
shopt -s cmdhist
PROMPT_COMMAND='history -a'
# C/C++ build flags
#export CFLAGS=-Qunused-arguments
#export CPPFLAGS=-Qunused-arguments
source ~/.profile
source ~/.aliases
# ==================
# MAIN PATH
# ==================
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin
# python 2.7
VIRTUALENVWRAPPER_PYTHON=/Users/${USER}/.pyenv/shims/python
# ==================
# PYTHON STUFF
# ==================
export PIP_DOWNLOAD_CACHE=$HOME/.pipcache
# pyenv
export WORKON_HOME="/Users/${USER}/.virtualenvs"
export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true"
export PYENV_VERSION=2.7.8
export PYENV_ROOT="${HOME}/.pyenv"
export PATH="${PYENV_ROOT}/bin:$PATH"
eval "$(pyenv init -)";
eval "$(pyenv virtualenv-init -)"
pyenv virtualenvwrapper_lazy
# ==================
# OTHER LANGUAGE CONFIGS
# ==================
export EDITOR="/usr/bin/vim"
export ALT_EDITOR="/usr/local/bin/subl"
[[ -s "${HOME}/.rvm/scripts/rvm" ]] && source "${HOME}/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
rvm use system;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment