Last active
November 5, 2018 22:21
-
-
Save nickrobinson251/3f7229b984fcbbd4c56b886f82a2d8e8 to your computer and use it in GitHub Desktop.
A fish config file that let's you use conda virtual environments
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
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