From de16b0a371a1f7ed9aee9cf8dc8b7ef530524d34 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Feb 2024 15:57:34 +0100 Subject: [PATCH] Up. --- .../run_onchange_after_10-install-packages.sh.tmpl | 12 ++++++------ .../run_onchange_after_80-install-lvim.sh.tmpl | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl b/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl index c8545f9..77acb36 100644 --- a/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl +++ b/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl @@ -30,11 +30,11 @@ packages=( ## Install yay if [ ! $(command -v yay) ]; then echo "installing yay" - {{- if ne .chezmoi.username "root" }} - sudo pacman -S --needed --noconfirm git base-devel - {{- else}} - pacman -S --needed --noconfirm git base-devel - {{- end }} + {{- if ne .chezmoi.username "root" }} + sudo pacman -S --needed --noconfirm git base-devel + {{- else}} + pacman -S --needed --noconfirm git base-devel + {{- end }} git clone https://aur.archlinux.org/yay.git /tmp/yay cd /tmp/yay makepkg -si --noconfirm @@ -46,7 +46,7 @@ packages=( if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then echo "installing ${package}..." - {{- if ne .chezmoi.username "root" }} + {{- if ne .chezmoi.username "root" }} sudo yay -S --noconfirm $package {{- else }} yay -S --noconfirm $package diff --git a/home/.chezmoiscripts/run_onchange_after_80-install-lvim.sh.tmpl b/home/.chezmoiscripts/run_onchange_after_80-install-lvim.sh.tmpl index 0754b76..1970959 100644 --- a/home/.chezmoiscripts/run_onchange_after_80-install-lvim.sh.tmpl +++ b/home/.chezmoiscripts/run_onchange_after_80-install-lvim.sh.tmpl @@ -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') +~/.local/bin/lvim +LvimCacheReset +q + echo -e "\033[0;32m>>>>> Finish LVim installation <<<<<\033[0m"