Corrected bug in reloader logic

This commit is contained in:
Luke 2025-08-10 12:11:48 -07:00
parent 4fcea2d589
commit 2f37ec5534

View file

@ -76,9 +76,9 @@ function __rebuild_bashrcd() {
fi fi
} }
function __bashrc_reload() { function -reload-bashrc() {
export BASHRC_RELOAD_COUNTER=$((${BASHRC_RELOAD_COUNTER:-0}+1)) export BASHRC_RELOAD_COUNTER=\$((\${BASHRC_RELOAD_COUNTER:-0}+1))
if [[ $BASHRC_RELOAD_COUNTER -gt 1 ]]; then echo "reload count: $BASHRC_RELOAD_COUNTER"; fi if [[ \$BASHRC_RELOAD_COUNTER -gt 1 ]]; then echo "reload count: \$BASHRC_RELOAD_COUNTER"; fi
source ~/.bashrc source ~/.bashrc
} }
alias __bashrc_reload='-reload-bashrc' alias __bashrc_reload='-reload-bashrc'