fix miaou-bash helper
This commit is contained in:
+4
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user