[tmux](https://tmux.github.io/) is a terminal mutiplexer. It lets you have multiples shells running in a single terminal emulator window and it keeps those shells running in the background should you need to close your terminal emulator.
I've played around with the configuration quite a bit to find settings that suit my needs. Here's what it ended up looking like :
This screenshot was done on Mac OS X, using the Terminal app and this [Solarized theme](https://github.com/tomislav/osx-terminal.app-colors-solarized).
I figured I'd share my tmux configuration here !
## Installing tmux
tmux is available on Debian. I suggest using the [jessie backports](https://packages.debian.org/jessie-backports/tmux) version :
`apt -t jessie-backports install tmux`
tmux is also available on Mac OS X using [brew](http://brew.sh/) :
`brew install tmux`
## tmux.conf
I used screen before tmux, so I configured the prefix key on C-a instead of C-b. tmux has the advantage of being *much* simpler to configure than screen.
If you want to use this configuration, simply copy the following in ~/.tmux.conf. This file is read by default when tmux starts.
If you simply want to try it out, copy it in a file somewhere else and have tmux load with the -f parameter (`tmux -f ~/tmux-test.conf`).
The second one changes the tmux window name whenever I ssh to a remote host, and switches the window name back to the name of my computer when I logout from the host.