From ecf3d88191342ecd8e02f490bbacaf34f09c603a Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 9 Jan 2024 20:50:02 +0100 Subject: [PATCH] Up config. --- .../run_onchange_10-install-packages.sh.tmpl | 30 +++++++++++++++++++ ...im.sh => run_onchange_50-configure-zim.sh} | 0 ...vim.sh => run_onchange_80-install-lvim.sh} | 0 3 files changed, 30 insertions(+) create mode 100644 home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl rename home/.chezmoiscripts/{run_onchange_10-configure-zim.sh => run_onchange_50-configure-zim.sh} (100%) rename home/.chezmoiscripts/{run_onchange_20-install-lvim.sh => run_onchange_80-install-lvim.sh} (100%) diff --git a/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl b/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl new file mode 100644 index 0000000..8277a70 --- /dev/null +++ b/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl @@ -0,0 +1,30 @@ +{{ if (eq .chezmoi.osRelease.id "manjaro") -}} +#!/usr/bin/env bash + +set -euxo pipefail + +echo -e "\033[0;32m>>>>> Begin Setting Up Manjaro Linux Packages <<<<<\033[0m" + +packages=( + curl + wget + git + tmux +) + + + + +## 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 }} + git clone https://aur.archlinux.org/yay.git /tmp/yay + cd /tmp/yay + makepkg -si --noconfirm + rm -rf /tmp/yay +fi diff --git a/home/.chezmoiscripts/run_onchange_10-configure-zim.sh b/home/.chezmoiscripts/run_onchange_50-configure-zim.sh similarity index 100% rename from home/.chezmoiscripts/run_onchange_10-configure-zim.sh rename to home/.chezmoiscripts/run_onchange_50-configure-zim.sh diff --git a/home/.chezmoiscripts/run_onchange_20-install-lvim.sh b/home/.chezmoiscripts/run_onchange_80-install-lvim.sh similarity index 100% rename from home/.chezmoiscripts/run_onchange_20-install-lvim.sh rename to home/.chezmoiscripts/run_onchange_80-install-lvim.sh