From 2187fcf99f37eda3068bbee6dc251c68e94dea29 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Fri, 1 Mar 2024 11:37:17 +0100 Subject: [PATCH] Up. --- .../run_onchange_after_10-install-packages.sh.tmpl | 6 +----- .../run_onchange_after_20-config-zim.sh.tmpl | 10 ++-------- .../run_onchange_after_80-install-lvim.sh.tmpl | 7 +------ 3 files changed, 4 insertions(+), 19 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 01c347a..793bde3 100644 --- a/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl +++ b/home/.chezmoiscripts/run_onchange_after_10-install-packages.sh.tmpl @@ -2,13 +2,9 @@ # Logging function log() { - printf "${C_BLU}>>>>> %s <<<<<${F_RST}" "$1" + printf "$(tput setaf 4)$(tput bold)>>>>> %s <<<<<$(tput sgr0)" "$1" } -# Testing existance function -exist() { - command -v "$1$" >/dev/null 2>&1 -} # Packages to install diff --git a/home/.chezmoiscripts/run_onchange_after_20-config-zim.sh.tmpl b/home/.chezmoiscripts/run_onchange_after_20-config-zim.sh.tmpl index 2adebc0..a244669 100644 --- a/home/.chezmoiscripts/run_onchange_after_20-config-zim.sh.tmpl +++ b/home/.chezmoiscripts/run_onchange_after_20-config-zim.sh.tmpl @@ -2,20 +2,14 @@ # Logging function log() { - printf "${C_BLU}>>>>> %s <<<<<${F_RST}" "$1" -} - -# Testing existance function -exist() { - command -v "$1$" >/dev/null 2>&1 + printf "$(tput setaf 4)$(tput bold)>>>>> %s <<<<<$(tput sgr0)" "$1" } +# Environment variables ZIMDIR=${HOME}/.zim: - - # Packages to install packages=( starship 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 52c09e4..25a5a6d 100644 --- a/home/.chezmoiscripts/run_onchange_after_80-install-lvim.sh.tmpl +++ b/home/.chezmoiscripts/run_onchange_after_80-install-lvim.sh.tmpl @@ -2,12 +2,7 @@ # Logging function log() { - printf "${C_BLU}>>>>> %s <<<<<${F_RST}" "$1" -} - -# Testing existance function -exist() { - command -v "$1$" >/dev/null 2>&1 + printf "$(tput setaf 4)$(tput bold)>>>>> %s <<<<<$(tput sgr0)" "$1" }