From bcf5846e803f5925910ca657201b11993a46a1ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Thu, 7 Nov 2024 05:26:28 +0100 Subject: [PATCH] fix tmux warning --- functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index 01a51ac..e2019f6 100755 --- a/functions.sh +++ b/functions.sh @@ -47,7 +47,9 @@ _ps1_hook() { _bashrc_tmp_hook() { if [ ! -z "${bashrctmp:-x}" ]; then - tmux set-environment bashrctmp "${bashrctmp}" + if [ -n "${TMUX}" ]; then + tmux set-environment bashrctmp "${bashrctmp}" + fi fi }