1
0
Fork 0
mirror of https://github.com/MillironX/dotfiles.git synced 2024-12-22 00:58:17 +00:00

feat: Add mamba installer

This commit is contained in:
Thomas A. Christensen II 2023-04-15 18:46:50 -05:00
parent 597a4edb0f
commit 2bf7c0a80b
Signed by: millironx
GPG key ID: 09335146883990B9

View file

@ -0,0 +1,12 @@
#!/bin/bash
{{ if eq .chezmoi.os "linux" }}
{{ $mambaURL := print "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-pypy3-Linux-x86_64.sh" }}
{{ if lookPath "wget" }}
wget -qO- "{{ $mambaURL }}" > mamba.sh
{{ else }}
curl -L "{{ $mambaURL }}" > mamba.sh
{{ end }}
chmod +x mamba.sh
./mamba.sh -b -u -p $HOME/miniconda3
rm mamba.sh
{{ end }}