intelligent tmux behavior