Move updating tmux environment for a separate function.