From 89b9edeff76054b8864f11c940e3591d99dfcf24 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 2 Aug 2025 16:28:20 -0700 Subject: [PATCH] Standardized rebuild/reload conventions a bit. --- 0-builder | 8 ++++++++ aliases.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/0-builder b/0-builder index 8aa183b..ea0a478 100644 --- a/0-builder +++ b/0-builder @@ -75,6 +75,14 @@ function __rebuild_bashrcd() { source \""""$(readlink -f "$COMPILED_SRC")"""\" 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 + source ~/.bashrc +} +alias __bashrc_reload='-reload-bashrc' + """ >> $COMPILED_SRC __builder_postbuild_exec diff --git a/aliases.sh b/aliases.sh index fea770a..cb4e4f5 100644 --- a/aliases.sh +++ b/aliases.sh @@ -47,7 +47,7 @@ if ! which -s python && which -s python3; then alias python=python3 fi -function -restart_plasma() { +function -restart-plasma() { ( set -ex plasmashell --replace &>/dev/null &