File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change 4
4
MGENVDIR=$( dirname " ${BASH_SOURCE[0]} " )
5
5
6
6
# setup environment variables
7
+ # Note: this also adds "$INSTALLDIR/conda/bin" to $PATH
7
8
echo " [mgenv] setting environmental variables"
8
9
source ${MGENVDIR} /variables.sh
9
10
10
- # initialize conda
11
- echo " [mgenv] initializing conda"
12
- conda init bash
13
-
14
- # reload shell
15
- echo " [mgenv] reloading shell"
16
- source $HOME /.bashrc
17
-
18
- # list conda environments
19
- echo " [mgenv] listing conda environments"
20
- conda env list
21
-
22
- # initialize conda
23
- echo " [mgenv] initializing conda (again)"
24
- conda init bash
11
+ # activate conda
12
+ echo " [mgenv] activating conda"
13
+ source " $INSTALLDIR /conda/etc/profile.d/conda.sh"
25
14
26
15
# activate conda environment
27
16
echo " [mgenv] activating environment $CONDANAME "
You can’t perform that action at this time.
0 commit comments