if [[ -n "$TMUX" ]]; then function update-env { # update environment from tmux eval $(tmux show-environment -s) } preexec_functions+=(update-env) fi