-
Notifications
You must be signed in to change notification settings - Fork 4
/
init.sh
29 lines (23 loc) · 930 Bytes
/
init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Part 1: export conda to PATH, and initiate it
# ---------------------------------------------------------
# Add Conda to PATH permanently for bash shells
echo "Adding Conda to PATH in .bashrc..."
echo 'export PATH=/opt/anaconda3/bin:$PATH' >> ~/.bashrc
# use single quote to the literal string, not expanded $PATH
# Reload .bashrc
source ~/.bashrc
# Initiate conda
echo "Initiating Conda..."
conda init bash
# Reload .bashrc
source ~/.bashrc
# Part 2: Create conda environment for the course
# ---------------------------------------------------------
echo "Creating conda environment for the course..."
conda env create -f https://raw.githubusercontent.com/ICOA-SBC/GSON-cheminformatics/master/environment.yml
# Part 3: Clone the repo
# ---------------------------------------------------------
echo "Cloning the repo..."
git clone https://github.com/ICOA-SBC/GSON-cheminformatics
conda activate teachopencadd