GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — code_snippets/conda_auto_env.sh at master · Fahad2314/code_snippets Expand file tree/ Copy pathconda_auto_env.shMore file actions 16 lines (14 loc) · 469 Bytes / Copy pathconda_auto_env.shFile metadata and controls16 lines (14 loc) · 469 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 # Modified from: # https://github.com/chdoig/conda-auto-env # Auto activate conda environments function conda_auto_env() { if [ -e "environment.yaml" ]; then ENV_NAME=$(head -n 1 environment.yaml | cut -f2 -d ' ') # Check if you are already in the environment if [[ $CONDA_PREFIX != *$ENV_NAME* ]]; then # Try to activate environment source activate $ENV_NAME &>/dev/null fi fi } export PROMPT_COMMAND="conda_auto_env;$PROMPT_COMMAND" |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |