diff --git a/home/.bashrc b/home/.bashrc index 091611c..ab4cd46 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -35,8 +35,9 @@ if [ -f /opt/perl5/etc/bashrc ]; then source /opt/perl5/etc/bashrc fi -# Virtualenv +# Virtualenv settings. Prefer Python 3 for new environments. export WORKON_HOME=~/.virtualenvs +command -v python3 >/dev/null 2>&1 && export VIRTUALENV_PYTHON=`command -v python3` if [ -f /usr/bin/virtualenvwrapper.sh ]; then source /usr/bin/virtualenvwrapper.sh elif [ -f /usr/share/virtualenvwrapper/virtualenvwrapper.sh ]; then diff --git a/home/.zshrc b/home/.zshrc index 4fa5862..947493e 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -34,8 +34,9 @@ else export PATH="${USR_PATH}:${CORE_PATH}" fi export EDITOR="/usr/bin/vim" -# Virtualenv +# Virtualenv settings. Prefer Python3 for new environments. export WORKON_HOME=~/.virtualenvs +command -v python3 >/dev/null 2>&1 && export VIRTUALENV_PYTHON=`command -v python3` # Go export GOPATH="$HOME/go/.ext:$HOME/go"