Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nickrobinson251
Last active November 5, 2018 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickrobinson251/3f7229b984fcbbd4c56b886f82a2d8e8 to your computer and use it in GitHub Desktop.
Save nickrobinson251/3f7229b984fcbbd4c56b886f82a2d8e8 to your computer and use it in GitHub Desktop.
A fish config file that let's you use conda virtual environments
if test -n $_CONDA_ROOT
if not contains $_CONDA_ROOT $PATH
# add anaconda (or alternatively miniconda) to path so we can use conda
set -gx PATH $_CONDA_ROOT $PATH
end
# make using conda virtual envs possible. Start/stop with
# 'conda activate <env>' and 'conda deactivate'
source $_CONDA_ROOT/etc/fish/conf.d/conda.fish
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment