#!/bin/sh
# centos tmux install script. To install tmux version 2.0 instead of 1.6 installed by yum install command.
sudo yum install gcc make automake pkgconfig wget git-core ncurses-devel -y
mkdir ~/src
cd ~/src
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -zxvf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make
sudo make install
sudo ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64
cd ~/src
wget https://github.com/ThomasAdam/tmux/archive/2.0.tar.gz
tar -zxvf 2.0.tar.gz
cd tmux-2.0
sh autogen.sh
./configure && make
sudo make install