copied in portions of kevins tmux-conf