Skip to content

Commit

Permalink
miniconda
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Jan 20, 2024
1 parent 1a2c8ad commit 2354ea6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Mini*.sh
mydomains
*.swp

Expand Down
12 changes: 6 additions & 6 deletions setup-conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ set -eou pipefail
case "$OSTYPE" in
darwin*)
case $(uname -m) in
arm64) DOWNLOAD=https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-MacOSX-arm64.sh; ;;
*) DOWNLOAD=https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-MacOSX-x86_64.sh; ;;
arm64) DOWNLOAD=https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh; ;;
*) DOWNLOAD=https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh; ;;
esac ;;
linux*)
case $(uname -m) in
aarch64) DOWNLOAD=https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-aarch64.sh; ;;
*) DOWNLOAD=https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh; ;;
aarch64) DOWNLOAD=https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh; ;;
*) DOWNLOAD=https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh; ;;
esac ;;
*) echo "unknown: $OSTYPE" ;;
esac
Expand All @@ -24,9 +24,9 @@ esac

echo Downloading installer...
curl -LO --no-progress-meter $DOWNLOAD
bash Mambaforge-*.sh -b
bash Miniconda3-*.sh -b

~/mambaforge/bin/conda init $SHELL_NAME
~/miniconda3/bin/conda init $SHELL_NAME

echo Please close and reopen your terminal.

0 comments on commit 2354ea6

Please sign in to comment.