only do tmux stuff if we have write permission to the tmux session.
add a mysterious line to inputrc that fixes a bunch of line editing bugs