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 &