added a few things to make tmux / terminals better behaved