fix bashrctmp
This commit is contained in:
parent
6c1af9d8f4
commit
c261a5a9bf
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue