Install libevent
browse http://libevent.org and download the latest version of libevent.
tar zxf libevent.tar.gz
cd libevent
./configure --prefix=/usr/local
make && make installInstall ncurses
browse http://ftp.gnu.org/gnu/ncurses and download the latest version of ncurses.
tar zxf ncurses.tar.gz
cd ncurses
./configure --prefix=/usr/local
make && make installInstall tmux
Cygwin :
install autoconf, automake, and pkg-config to cygwin if not.
git clone http://git.code.sf.net/p/tmux/tmux-code tmux-tmux-code
cd tmux-tmux-code- ./autogen.sh (will see many warnings; if it complains about \r not found, convert autogen.sh to use Unix line endings with mv autogen.sh temp.sh; dos2unix -o autogen.sh temp.sh)
- run “./configure –prefix=/usr/local” if failed to make Makefile
CFLAGS="-I/usr/local/include/ncurses" ./configure --prefix=/usr/local
make && make installLinux or Unix :
browse http://tmux.sourceforge.net and download the latest version of tmux.
tar zxf tmux.tar.gz
cd tmux
CFLAGS="-I/usr/local/include -I/usr/local/include/ncurses"
LDFLAGS="-L/usr/local/lib"
./configure --prefix=/usr/local
make && make installConfigure tmux
to manually adjust colors, fonts, cursor shape, and more right-click the window title bar and select “Options…”.
create a .tmux.conf file include at least this line so the mouse and arrow keys can be used to switch panes:
set -sg escape-time 250for more information about tmux configuration, see here.
