diff --git a/bashrc_add b/bashrc_add index 2ef3ed8..be1d497 100755 --- a/bashrc_add +++ b/bashrc_add @@ -16,7 +16,7 @@ # https://guide.bash.academy/expansions/ # https://www.tldp.org/LDP/abs/html/refcards.html#AEN22473 if [[ $- = *i* ]] ; then - if [ "${BASHRC_TMP:-x}" == "x" ] + if [ "${bashrctmp:-x}" == "x" ] then #echo "interactive shell" >&2 @@ -231,7 +231,7 @@ EOF fi logdebug "after" else - [ -e "${BASHRC_TMP}" ] && exec bash --rcfile "${BASHRC_TMP}" + [ -e "${bashrctmp}" ] && exec bash --rcfile "${bashrctmp}" fi fi diff --git a/functions.sh b/functions.sh index 23a5dd2..87d1b58 100755 --- a/functions.sh +++ b/functions.sh @@ -22,9 +22,9 @@ promptcommandmunge () { } _bashrc_tmp_hook() { - if [ ! -z "${BASHRC_TMP:-x}" ]; + if [ ! -z "${bashrctmp:-x}" ]; then - tmux set-environment BASHRC_TMP "${BASHRC_TMP}" + tmux set-environment bashrctmp "${bashrctmp}" fi }