fix miaou-bash helper

This commit is contained in:
pvincent
2026-08-23 17:22:59 +04:00
parent b91d9d385b
commit 6a521dc626
+4 -1
View File
@@ -209,12 +209,15 @@ alias ssu='ss -tupn'
# the miaou-bash helper function # the miaou-bash helper function
function miaou-bash { function miaou-bash {
if "$MIAOU_BASH_DIR"/bin/miaou-bash "$@"; then "$MIAOU_BASH_DIR"/bin/miaou-bash "$@"
local code=$?
if [[ "$code" == 0 ]]; then
if [[ "${1:-}" =~ --self-upgrade|--uninstall ]]; then if [[ "${1:-}" =~ --self-upgrade|--uninstall ]]; then
echo 'reloading session now!' echo 'reloading session now!'
exec bash -l exec bash -l
fi fi
fi fi
return $code
} }
# BASH COMPLETIONS # BASH COMPLETIONS