Up config.
This commit is contained in:
parent
ecf3d88191
commit
34585da88e
@ -1,19 +1,24 @@
|
|||||||
{{ if (eq .chezmoi.osRelease.id "manjaro") -}}
|
{{- if (eq .chezmoi.os "linux") }}
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
echo -e "\033[0;32m>>>>> Begin Setting Up Manjaro Linux Packages <<<<<\033[0m"
|
|
||||||
|
|
||||||
packages=(
|
packages=(
|
||||||
curl
|
curl
|
||||||
wget
|
wget
|
||||||
git
|
|
||||||
tmux
|
tmux
|
||||||
|
neovim
|
||||||
)
|
)
|
||||||
|
|
||||||
|
{{ if (eq .chezmoi.osRelease.id "manjaro") -}}
|
||||||
|
echo -e "\033[0;32m>>>>> Begin Manjaro Linux packages installation <<<<<\033[0m"
|
||||||
|
|
||||||
|
## Update system
|
||||||
|
{{- if ne .chezmoi.username "root" }}
|
||||||
|
sudo pacman -Syu --noconfirm
|
||||||
|
{{- else }}
|
||||||
|
pacman -Syu --noconfirm
|
||||||
|
{{- end}}
|
||||||
|
|
||||||
## Install yay
|
## Install yay
|
||||||
if [ ! $(command -v yay) ]; then
|
if [ ! $(command -v yay) ]; then
|
||||||
@ -28,3 +33,21 @@ if [ ! $(command -v yay) ]; then
|
|||||||
makepkg -si --noconfirm
|
makepkg -si --noconfirm
|
||||||
rm -rf /tmp/yay
|
rm -rf /tmp/yay
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## Install packages
|
||||||
|
for package in ${packages[@]}; do
|
||||||
|
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
||||||
|
echo "installing packages"
|
||||||
|
|
||||||
|
{{- if ne .chezmoi.username "root" }}
|
||||||
|
sudo yay -S --noconfirm $package
|
||||||
|
{{- else }}
|
||||||
|
yay -S --noconfirm $package
|
||||||
|
{{- end }}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo -e "\033[0;32m>>>>> Finish Manjaro Linux packages installation <<<<<\033[0m"
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user