The following script was adapted from https://gist.github.com/ryin/3106801, with some improvements and broken link fixes.
#!/bin/bash # Script for installing tmux on systems where you don't have root access. # tmux will be installed in $HOME/local/bin.