From a249a2caeeecde1b284e5bce021dc89f88fecbe0 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sun, 25 Dec 2022 09:43:39 +0000 Subject: [PATCH] Update file run_onchange_after_12-install-packages.tmpl --- .../universal/run_onchange_after_12-install-packages.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_12-install-packages.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_12-install-packages.tmpl index 1ad221ff..805709cc 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_12-install-packages.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_12-install-packages.tmpl @@ -14,6 +14,10 @@ if command -v install-program > /dev/null; then # Ask for the administrator password upfront logg info 'A sudo password may be required for some of the installations' sudo echo "Sudo access granted." + if ! command -v pipx > /dev/null && [ -f "$HOME/.bashrc" ]; then + logg info 'Sourcing ~/.bashrc to ensure PATHs are set up correctly' + . "$HOME/.bashrc" + fi install-program {{ index .softwareGroups $softwareGroup | toString | replace "[" "" | replace "]" "" }} else logg error '`zx` is not available'