From c261a5a9bfb623e741b88a7a9eb99ddd7edfc6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Tue, 2 May 2023 08:37:19 +0200 Subject: [PATCH] fix bashrctmp --- bashrc_add | 4 ++-- functions.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 }