1
0

Default to Python3 for virtualenvwrapper

This commit is contained in:
Noah 2017-06-08 10:20:36 -07:00
parent 594b1c98af
commit c0d24d197f
2 changed files with 4 additions and 2 deletions

View File

@ -35,8 +35,9 @@ if [ -f /opt/perl5/etc/bashrc ]; then
source /opt/perl5/etc/bashrc source /opt/perl5/etc/bashrc
fi fi
# Virtualenv # Virtualenv settings. Prefer Python 3 for new environments.
export WORKON_HOME=~/.virtualenvs export WORKON_HOME=~/.virtualenvs
command -v python3 >/dev/null 2>&1 && export VIRTUALENV_PYTHON=`command -v python3`
if [ -f /usr/bin/virtualenvwrapper.sh ]; then if [ -f /usr/bin/virtualenvwrapper.sh ]; then
source /usr/bin/virtualenvwrapper.sh source /usr/bin/virtualenvwrapper.sh
elif [ -f /usr/share/virtualenvwrapper/virtualenvwrapper.sh ]; then elif [ -f /usr/share/virtualenvwrapper/virtualenvwrapper.sh ]; then

View File

@ -34,8 +34,9 @@ else export PATH="${USR_PATH}:${CORE_PATH}"
fi fi
export EDITOR="/usr/bin/vim" export EDITOR="/usr/bin/vim"
# Virtualenv # Virtualenv settings. Prefer Python3 for new environments.
export WORKON_HOME=~/.virtualenvs export WORKON_HOME=~/.virtualenvs
command -v python3 >/dev/null 2>&1 && export VIRTUALENV_PYTHON=`command -v python3`
# Go # Go
export GOPATH="$HOME/go/.ext:$HOME/go" export GOPATH="$HOME/go/.ext:$HOME/go"