Files
dotfiles/run_once_install.sh.tmpl

14 lines
428 B
Bash

#!/usr/bin/env sh
echo "Running installation script\n"
{{- if eq .chezmoi.os "linux" }}
{{- if eq .chezmoi.osRelease.id "alpine" }}
apk update
apk add zsh neovim tmux bat perl
{{- else if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu")) }}
sudo apt update
sudo apt install zsh neovim tmux perl -y
{{- end }}
{{- else if eq .chezmoi.os "darwin" }}
brew install zsh neovim tmux perl
{{- end }}