Skip to content

Instantly share code, notes, and snippets.

@adamgen
Last active August 29, 2019 07:09
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 adamgen/e224751ad40fb1c7e8b8cc79d906e608 to your computer and use it in GitHub Desktop.
Save adamgen/e224751ad40fb1c7e8b8cc79d906e608 to your computer and use it in GitHub Desktop.
initial bash profile scripts that run on startup
# install: brew install bash-completion
# then in .bash_profile
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# install: brew install nvm
# then in .bash_profile
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# pyenv
export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# virtual env
export WORKON_HOME=~/.venvs
export VIRTUALENVWRAPPER_PYTHON=$(pyenv which python3.7)
export VIRTUALENVWRAPPER_VIRTUALENV=$(dirname $(pyenv which python3.7))/virtualenv
source $(dirname $(pyenv which python3.7))/virtualenvwrapper.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment