fix miaou-bash helper
This commit is contained in:
+4
-1
@@ -209,12 +209,15 @@ alias ssu='ss -tupn'
|
||||
|
||||
# the miaou-bash helper function
|
||||
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
|
||||
echo 'reloading session now!'
|
||||
exec bash -l
|
||||
fi
|
||||
fi
|
||||
return $code
|
||||
}
|
||||
|
||||
# BASH COMPLETIONS
|
||||
|
||||
Reference in New Issue
Block a user