1
0
chezmoi/home/.chezmoiscripts/run_onchange_after_80-install-lvim.sh.tmpl

39 lines
1.2 KiB
Cheetah
Raw Normal View History

2024-01-20 22:50:27 +01:00
#!/usr/bin/env bash
set -euxo pipefail
2024-01-20 22:55:48 +01:00
echo -e "\033[0;32m>>>>> Begin LVim installation <<<<<\033[0m"
2024-02-26 23:12:51 +01:00
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
2024-01-20 22:50:27 +01:00
2024-02-26 23:12:51 +01:00
## Install packages
2024-02-27 21:40:04 +01:00
{{ range .packages_lvim.archlinux.yay -}}
echo "installing {{ . | quote }}..."
yay -S --needed --noconfirm {{ . | quote }}
{{ end -}}
2024-02-26 23:12:51 +01:00
{{ else if (eq .chezmoi.osRelease.id "debian" "ubuntu") -}}
2024-02-27 16:39:55 +01:00
export DEBIAN_FRONTEND=noninteractive
2024-02-26 23:12:51 +01:00
## Install packages
2024-02-27 21:40:04 +01:00
{{ range .packages_base.debian.apt -}}
echo "installing {{ . | quote }}..."
2024-02-27 16:18:56 +01:00
{{- if ne .chezmoi.username "root" }}
2024-02-27 21:40:04 +01:00
sudo -E apt-get install --yes --no-install-recommends --ignore-missing {{ . | quote }}
{{- else}}
apt-get install --yes --no-install-recommends --ignore-missing {{ . | quote }}
2024-02-27 16:18:56 +01:00
{{- end }}
2024-02-27 21:40:04 +01:00
{{ end -}}
2024-02-26 23:12:51 +01:00
2024-02-27 21:40:04 +01:00
{{ range .packages_base.debian.mist -}}
echo "installing {{ . | quote }}..."
apt-get install --yes --no-install-recommends --ignore-missing {{ . | quote }}
{{ end -}}
2024-02-27 15:06:11 +01:00
2024-02-26 23:12:51 +01:00
{{- end }}
2024-01-06 23:09:43 +01:00
LV_BRANCH='release-1.3/neovim-0.9' bash <(curl -s 'https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.3/neovim-0.9/utils/installer/install.sh')
2024-01-20 22:55:48 +01:00
echo -e "\033[0;32m>>>>> Finish LVim installation <<<<<\033[0m"