helpers: Auto reload now only reloads and not reset the shell
parent
8a8a9018bb
commit
24c05995e7
|
|
@ -114,6 +114,10 @@ bash-it ()
|
||||||
do
|
do
|
||||||
$func $arg
|
$func $arg
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -n "$BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE" ]; then
|
||||||
|
_bash-it-reload
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
$func "$@"
|
$func "$@"
|
||||||
fi
|
fi
|
||||||
|
|
@ -239,6 +243,10 @@ _bash-it-migrate() {
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -n "$BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE" ]; then
|
||||||
|
_bash-it-reload
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$migrated_something" = "true" ]; then
|
if [ "$migrated_something" = "true" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "If any migration errors were reported, please try the following: reload && bash-it migrate"
|
echo "If any migration errors were reported, please try the following: reload && bash-it migrate"
|
||||||
|
|
@ -455,10 +463,6 @@ _disable-thing ()
|
||||||
|
|
||||||
_bash-it-clean-component-cache "${file_type}"
|
_bash-it-clean-component-cache "${file_type}"
|
||||||
|
|
||||||
if [ -n "$BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE" ]; then
|
|
||||||
exec ${0/-/}
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf '%s\n' "$file_entity disabled."
|
printf '%s\n' "$file_entity disabled."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -555,10 +559,6 @@ _enable-thing ()
|
||||||
|
|
||||||
_bash-it-clean-component-cache "${file_type}"
|
_bash-it-clean-component-cache "${file_type}"
|
||||||
|
|
||||||
if [ -n "$BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE" ]; then
|
|
||||||
exec ${0/-/}
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf '%s\n' "$file_entity enabled with priority $use_load_priority."
|
printf '%s\n' "$file_entity enabled with priority $use_load_priority."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue