Files
dotfiles/run_once_install.sh.tmpl

28 lines
905 B
Bash

#!/usr/bin/env sh
echo "Running installation script\n"
echo "Installing bash\n"
{{- if eq .chezmoi.osRelease.id "alpine" }}
apk update
apk add bash
{{- else if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu")) }}
sudo apt update
sudo apt bash -y
{{- end }}
echo "Running installations\n"
curl -sS https://webinstall.dev/webi | bash
~/.local/bin/webi bat curlie delta jq rg fd gh
{{- if eq .chezmoi.os "linux" }}
~/.local/bin/webi fish
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
{{- if eq .chezmoi.osRelease.id "alpine" }}
apk update
apk add zsh tmux perl bash
{{- else if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu")) }}
sudo apt update
sudo apt install zsh tmux perl bash -y
{{- end }}
{{- else if eq .chezmoi.os "darwin" }}
brew install neovim zsh tmux perl
~/.local/bin/webi fish
{{- end }}