From 2bf7c0a80b92626fb788cd7df3ea2414e243fb3a Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 15 Apr 2023 18:46:50 -0500 Subject: [PATCH] feat: Add mamba installer --- run_once_install_mamba.sh.tmpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 run_once_install_mamba.sh.tmpl diff --git a/run_once_install_mamba.sh.tmpl b/run_once_install_mamba.sh.tmpl new file mode 100644 index 0000000..a17e22f --- /dev/null +++ b/run_once_install_mamba.sh.tmpl @@ -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 }}