prepare for temporary bashrc with tmux
This commit is contained in:
parent
1884a7ebff
commit
3ea2b6f1d2
1 changed files with 176 additions and 171 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue