Copied some stuff for tmux