Up.
This commit is contained in:
parent
5ee1baad2d
commit
9e1cf20f96
@ -10,6 +10,16 @@ packages=(
|
|||||||
|
|
||||||
echo -e "\033[0;32m>>>>> Begin LVim installation <<<<<\033[0m"
|
echo -e "\033[0;32m>>>>> Begin LVim installation <<<<<\033[0m"
|
||||||
|
|
||||||
|
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
|
||||||
|
|
||||||
|
{{- /* we're on Arch based system */ -}}
|
||||||
|
## Update system
|
||||||
|
{{- if ne .chezmoi.username "root" }}
|
||||||
|
sudo pacman -Syu --noconfirm
|
||||||
|
{{- else }}
|
||||||
|
pacman -Syu --noconfirm
|
||||||
|
{{- end}}
|
||||||
|
|
||||||
## Install packages
|
## Install packages
|
||||||
for package in ${packages[@]}; do
|
for package in ${packages[@]}; do
|
||||||
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
||||||
@ -23,6 +33,34 @@ for package in ${packages[@]}; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
{{ else if (eq .chezmoi.osRelease.id "debian" "ubuntu") -}}
|
||||||
|
|
||||||
|
{{- /* we're on Debian based system */ -}}
|
||||||
|
echo -e "\033[0;32m>>>>> Begin zsh installation <<<<<\033[0m"
|
||||||
|
|
||||||
|
## Update system
|
||||||
|
{{- if ne .chezmoi.username "root" }}
|
||||||
|
DEBIAN_FRONTEND=noninteractive sudo -E apt update
|
||||||
|
DEBIAN_FRONTEND=noninteractive sudo -E apt upgrade --yes
|
||||||
|
{{- else }}
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt update
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt upgrade --yes
|
||||||
|
{{- end}}
|
||||||
|
|
||||||
|
## Install packages
|
||||||
|
for package in ${packages[@]}; do
|
||||||
|
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
||||||
|
echo "installing packages"
|
||||||
|
|
||||||
|
{{- if ne .chezmoi.username "root" }}
|
||||||
|
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
|
||||||
|
{{- else }}
|
||||||
|
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
|
||||||
|
{{- end }}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
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')
|
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')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user