fix bashrctmp

This commit is contained in:
Jakobus Schürz 2023-05-02 08:37:19 +02:00
parent 6c1af9d8f4
commit c261a5a9bf
2 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@
# https://guide.bash.academy/expansions/ # https://guide.bash.academy/expansions/
# https://www.tldp.org/LDP/abs/html/refcards.html#AEN22473 # https://www.tldp.org/LDP/abs/html/refcards.html#AEN22473
if [[ $- = *i* ]] ; then if [[ $- = *i* ]] ; then
if [ "${BASHRC_TMP:-x}" == "x" ] if [ "${bashrctmp:-x}" == "x" ]
then then
#echo "interactive shell" >&2 #echo "interactive shell" >&2
@ -231,7 +231,7 @@ EOF
fi fi
logdebug "after" logdebug "after"
else else
[ -e "${BASHRC_TMP}" ] && exec bash --rcfile "${BASHRC_TMP}" [ -e "${bashrctmp}" ] && exec bash --rcfile "${bashrctmp}"
fi fi
fi fi

View file

@ -22,9 +22,9 @@ promptcommandmunge () {
} }
_bashrc_tmp_hook() { _bashrc_tmp_hook() {
if [ ! -z "${BASHRC_TMP:-x}" ]; if [ ! -z "${bashrctmp:-x}" ];
then then
tmux set-environment BASHRC_TMP "${BASHRC_TMP}" tmux set-environment bashrctmp "${bashrctmp}"
fi fi
} }