From 2f37ec5534df1533a01d000a619c3ec37eb55282 Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 10 Aug 2025 12:11:48 -0700 Subject: [PATCH] Corrected bug in reloader logic --- 0-builder | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/0-builder b/0-builder index ea0a478..4060d5f 100644 --- a/0-builder +++ b/0-builder @@ -76,9 +76,9 @@ function __rebuild_bashrcd() { fi } -function __bashrc_reload() { - export BASHRC_RELOAD_COUNTER=$((${BASHRC_RELOAD_COUNTER:-0}+1)) - if [[ $BASHRC_RELOAD_COUNTER -gt 1 ]]; then echo "reload count: $BASHRC_RELOAD_COUNTER"; fi +function -reload-bashrc() { + export BASHRC_RELOAD_COUNTER=\$((\${BASHRC_RELOAD_COUNTER:-0}+1)) + if [[ \$BASHRC_RELOAD_COUNTER -gt 1 ]]; then echo "reload count: \$BASHRC_RELOAD_COUNTER"; fi source ~/.bashrc } alias __bashrc_reload='-reload-bashrc'