Update run_once_install.sh.tmpl
This commit is contained in:
@@ -1,19 +1,7 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
echo "Running installation script\n"
|
echo "Running installation script\n"
|
||||||
echo "Installing bash\n"
|
|
||||||
{{- if eq .chezmoi.os "linux" }}
|
|
||||||
{{- 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 }}
|
|
||||||
{{- 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" }}
|
{{- if eq .chezmoi.os "linux" }}
|
||||||
|
{{- if hasKey .chezmoi.osRelease "id" }} # avoid M1 mac osRelease.id not exist
|
||||||
{{- if eq .chezmoi.osRelease.id "alpine" }}
|
{{- if eq .chezmoi.osRelease.id "alpine" }}
|
||||||
apk update
|
apk update
|
||||||
apk add zsh tmux perl bash
|
apk add zsh tmux perl bash
|
||||||
@@ -21,6 +9,9 @@ apk add zsh tmux perl bash
|
|||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install zsh tmux perl bash -y
|
sudo apt install zsh tmux perl bash -y
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- else if eq .chezmoi.os "darwin" }}
|
{{- else if eq .chezmoi.os "darwin" }}
|
||||||
brew install neovim zsh tmux perl
|
brew install neovim zsh tmux perl
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
# curl -sS https://webinstall.dev/webi | bash
|
||||||
|
# ~/.local/bin/webi bat curlie delta jq rg fd gh
|
||||||
|
|||||||
Reference in New Issue
Block a user