|
|
|
@ -79,14 +79,6 @@ if [ -z "${__RESH_SESSION_ID+x}" ]; then |
|
|
|
# TODO add sesson time |
|
|
|
# TODO add sesson time |
|
|
|
__resh_reset_variables |
|
|
|
__resh_reset_variables |
|
|
|
__resh_session_init |
|
|
|
__resh_session_init |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# block for anything we only want to do once per shell |
|
|
|
|
|
|
|
if [ -z "${__RESH_INIT_DONE+x}" ]; then |
|
|
|
|
|
|
|
preexec_functions+=(__resh_preexec) |
|
|
|
|
|
|
|
precmd_functions+=(__resh_precmd) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__resh_reset_variables |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$__RESH_SHELL" = bash ] ; then |
|
|
|
if [ "$__RESH_SHELL" = bash ] ; then |
|
|
|
[ "$(resh-config --key BindArrowKeysBash)" = true ] && __resh_bind_arrows |
|
|
|
[ "$(resh-config --key BindArrowKeysBash)" = true ] && __resh_bind_arrows |
|
|
|
@ -97,6 +89,14 @@ if [ -z "${__RESH_INIT_DONE+x}" ]; then |
|
|
|
echo "$__RESH_SHELL" |
|
|
|
echo "$__RESH_SHELL" |
|
|
|
fi |
|
|
|
fi |
|
|
|
[ "$(resh-config --key BindControlR)" = true ] && __resh_bind_control_R |
|
|
|
[ "$(resh-config --key BindControlR)" = true ] && __resh_bind_control_R |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# block for anything we only want to do once per shell |
|
|
|
|
|
|
|
if [ -z "${__RESH_INIT_DONE+x}" ]; then |
|
|
|
|
|
|
|
preexec_functions+=(__resh_preexec) |
|
|
|
|
|
|
|
precmd_functions+=(__resh_precmd) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__resh_reset_variables |
|
|
|
|
|
|
|
|
|
|
|
__RESH_INIT_DONE=1 |
|
|
|
__RESH_INIT_DONE=1 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|