Default to Python3 for virtualenvwrapper
This commit is contained in:
parent
594b1c98af
commit
c0d24d197f
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user