Skip to content

Instantly share code, notes, and snippets.

@dkarchmer
Last active April 17, 2018 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dkarchmer/4f9d9060d82748b1707e78677f224ff6 to your computer and use it in GitHub Desktop.
Save dkarchmer/4f9d9060d82748b1707e78677f224ff6 to your computer and use it in GitHub Desktop.
Sample .bash_profile for a new Mac (See new-mad.md setup)
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# pip should only run if there is a virtualenv currently activated
export PIP_REQUIRE_VIRTUALENV=true
gpip(){
# gpip allows to install on global env
PIP_REQUIRE_VIRTUALENV="" pip "$@"
}
export WORKON_HOME=$HOME/.virtualenv
workon(){
source $WORKON_HOME/$1/bin/activate
}
export PIP_VIRTUALENV_BASE=$WORKON_HOME
# export EDITOR="/Applications/Emacs.app/Contents/MacOS/Emacs"
export DISPLAY=:0.0
# brew GIT token
# export HOMEBREW_GITHUB_API_TOKEN=<token>
alias d='ls -la'
alias e='open -a /Applications/Emacs.app'
# Default to NodeJS v6
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
nvm use 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment