Browse Source

fix miaou-bash helper

main
pvincent 2 weeks ago
parent
commit
6a521dc626
  1. 5
      etc/bash.bashrc

5
etc/bash.bashrc

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

Loading…
Cancel
Save