Created
November 11, 2014 08:35
-
-
Save janpipek/f13999baa7bf7ece80d8 to your computer and use it in GitHub Desktop.
"workon" for anaconda
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
function anaconda { | |
# Added by Anaconda 2.1.0 installer | |
export PATH="/opt/anaconda/bin:$PATH" | |
# Fix to use pure anaconda Qt | |
export QT_PLUGIN_PATH="/opt/anaconda/plugins" | |
} | |
function workon { | |
echo "Initializing anaconda..." | |
anaconda | |
echo "Initializing environment $1..." | |
source activate $1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment