본문으로 건너뛰기
  1. /

Steps to install tmux

·1 분
김동훈
작성자
김동훈
  1. Install libevent

  2. browse http://libevent.org and download the latest version of libevent.

tar zxf libevent.tar.gz
cd libevent
./configure --prefix=/usr/local
make && make install
  1. Install ncurses

  2. 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 install
  1. Install tmux

  2. Cygwin :

  3. 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
  1. ./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)
  2. run “./configure –prefix=/usr/local” if failed to make Makefile
CFLAGS="-I/usr/local/include/ncurses" ./configure --prefix=/usr/local
make && make install
  1. Linux or Unix :

  2. 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 install
  1. Configure tmux

  2. to use the Solarized color scheme, see here.

  3. to manually adjust colors, fonts, cursor shape, and more right-click the window title bar and select “Options…”.

  4. 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 250

  5. for more information about tmux configuration, see here.