Executes some tmux commands only under certain circumstances