Standardized rebuild/reload conventions a bit.

This commit is contained in:
Luke 2025-08-02 16:28:20 -07:00
parent 753f6ae659
commit 89b9edeff7
2 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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 &