Skip to content

Instantly share code, notes, and snippets.

@janpipek
Created November 11, 2014 08:35
Show Gist options
  • Save janpipek/f13999baa7bf7ece80d8 to your computer and use it in GitHub Desktop.
Save janpipek/f13999baa7bf7ece80d8 to your computer and use it in GitHub Desktop.
"workon" for anaconda
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