Last active
April 17, 2018 17:16
-
-
Save dkarchmer/4f9d9060d82748b1707e78677f224ff6 to your computer and use it in GitHub Desktop.
Sample .bash_profile for a new Mac (See new-mad.md setup)
This file contains 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
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