diff --git a/functions.sh b/functions.sh index 120b73f..e01f2d7 100755 --- a/functions.sh +++ b/functions.sh @@ -9,11 +9,12 @@ export TMUX_SESSION_DIRS SETPROXY_CREDS_DIRS KERBEROS_CONFIG_DIRS ## this function updates in combination with PROMPT_COMMAND the shell-environment-variables in tmus-sessions, # every time prompt is called. It does it only, when called from tmux (Environment TMUX is set) function prompt_command() { - [ -z "${TMUX+x}" ] || eval "$(tmux show-environment -s)" +# [ -z "${TMUX+x}" ] || eval "$(tmux show-environment -s)" + + if [ -n "${TMUX}" ]; then + eval "$(tmux show-environment -s)" + fi -# if [ -n "${TMUX}" ]; then -# eval "$(tmux show-environment -s)" -# fi } PROMPT_COMMAND=prompt_command