fix tmux warning

This commit is contained in:
Jakobus Schürz 2024-11-07 05:26:28 +01:00
parent e5e560c406
commit bcf5846e80

View file

@ -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
}