set BASHRC_TMP for tmux
This commit is contained in:
parent
3ea2b6f1d2
commit
6c1af9d8f4
2 changed files with 9 additions and 1 deletions
|
@ -202,6 +202,7 @@ EOF
|
||||||
promptcommandmunge "_tmux_hook"
|
promptcommandmunge "_tmux_hook"
|
||||||
promptcommandmunge "_umask_hook"
|
promptcommandmunge "_umask_hook"
|
||||||
promptcommandmunge "_pkcs11module_hook"
|
promptcommandmunge "_pkcs11module_hook"
|
||||||
|
promptcommandmunge "_bashrc_tmp_hook"
|
||||||
which direnv >/dev/null && eval "$(direnv hook bash)"
|
which direnv >/dev/null && eval "$(direnv hook bash)"
|
||||||
|
|
||||||
cat << EOF >> "${MSC_LOGFILE}"
|
cat << EOF >> "${MSC_LOGFILE}"
|
||||||
|
@ -230,7 +231,7 @@ EOF
|
||||||
fi
|
fi
|
||||||
logdebug "after"
|
logdebug "after"
|
||||||
else
|
else
|
||||||
exec bash --rcfile "${BASHRC_TMP}"
|
[ -e "${BASHRC_TMP}" ] && exec bash --rcfile "${BASHRC_TMP}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -21,6 +21,13 @@ promptcommandmunge () {
|
||||||
EXIT
|
EXIT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_bashrc_tmp_hook() {
|
||||||
|
if [ ! -z "${BASHRC_TMP:-x}" ];
|
||||||
|
then
|
||||||
|
tmux set-environment BASHRC_TMP "${BASHRC_TMP}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
_pkcs11module_hook() {
|
_pkcs11module_hook() {
|
||||||
|
|
||||||
if [ ! -z ${SSH_TTY:+x} ]; then
|
if [ ! -z ${SSH_TTY:+x} ]; then
|
||||||
|
|
Loading…
Reference in a new issue