prepare for temporary bashrc with tmux

This commit is contained in:
Jakobus Schürz 2023-05-02 08:18:49 +02:00
parent 1884a7ebff
commit 3ea2b6f1d2

View file

@ -16,6 +16,8 @@
# https://guide.bash.academy/expansions/
# https://www.tldp.org/LDP/abs/html/refcards.html#AEN22473
if [[ $- = *i* ]] ; then
if [ "${BASHRC_TMP:-x}" == "x" ]
then
#echo "interactive shell" >&2
# define variables
@ -227,5 +229,8 @@ EOF
logdebug "started tmux"
fi
logdebug "after"
else
exec bash --rcfile "${BASHRC_TMP}"
fi
fi