1
0
This commit is contained in:
Jeff Lance 2024-02-27 15:57:34 +01:00
parent 27aa0bc9ca
commit de16b0a371
2 changed files with 8 additions and 6 deletions

View File

@ -30,11 +30,11 @@ packages=(
## Install yay ## Install yay
if [ ! $(command -v yay) ]; then if [ ! $(command -v yay) ]; then
echo "installing yay" echo "installing yay"
{{- if ne .chezmoi.username "root" }} {{- if ne .chezmoi.username "root" }}
sudo pacman -S --needed --noconfirm git base-devel sudo pacman -S --needed --noconfirm git base-devel
{{- else}} {{- else}}
pacman -S --needed --noconfirm git base-devel pacman -S --needed --noconfirm git base-devel
{{- end }} {{- end }}
git clone https://aur.archlinux.org/yay.git /tmp/yay git clone https://aur.archlinux.org/yay.git /tmp/yay
cd /tmp/yay cd /tmp/yay
makepkg -si --noconfirm makepkg -si --noconfirm
@ -46,7 +46,7 @@ packages=(
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
echo "installing ${package}..." echo "installing ${package}..."
{{- if ne .chezmoi.username "root" }} {{- if ne .chezmoi.username "root" }}
sudo yay -S --noconfirm $package sudo yay -S --noconfirm $package
{{- else }} {{- else }}
yay -S --noconfirm $package yay -S --noconfirm $package

View File

@ -56,4 +56,6 @@ echo -e "\033[0;32m>>>>> Begin LVim installation <<<<<\033[0m"
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')
~/.local/bin/lvim +LvimCacheReset +q
echo -e "\033[0;32m>>>>> Finish LVim installation <<<<<\033[0m" echo -e "\033[0;32m>>>>> Finish LVim installation <<<<<\033[0m"