1
0
This commit is contained in:
Jeff Lance 2024-02-26 23:18:22 +01:00
parent 9e1cf20f96
commit 8ce1ff5a7d
2 changed files with 6 additions and 12 deletions

View File

@ -42,7 +42,7 @@ ZIMDIR=${HOME}/.zim
{{- if ne .chezmoi.username "root" }} {{- if ne .chezmoi.username "root" }}
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing zsh DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing zsh
{{- else }} {{- else }}
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing zsh DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing zsh
{{- end }} {{- end }}
curl -sS https://starship.rs/install.sh | sh curl -sS https://starship.rs/install.sh | sh

View File

@ -48,17 +48,11 @@ echo -e "\033[0;32m>>>>> Begin LVim installation <<<<<\033[0m"
{{- end}} {{- end}}
## Install packages ## Install packages
for package in ${packages[@]}; do
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
echo "installing packages"
{{- if ne .chezmoi.username "root" }} {{- if ne .chezmoi.username "root" }}
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing neovim python3-pynvim npm
{{- else }} {{- else }}
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing neovim python3-pynvim npm
{{- end }} {{- end }}
fi
done
{{- end }} {{- end }}