tmux is the new terminal multiplexer. It is used to replace the old screen.
mkdir ~/tools
cd tools
TOOLPATH=$PWD
tar zxf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=$TOOLPATH
make
make install
cd ..
tar zxf tmux-1.7.tar.gz
cd tmux-1.7
CPPFLAGS="-I$TOOLPATH/include" LDFLAGS="-L$TOOLPATH/lib" ./configure --prefix=$TOOLPATH
make
make install
cd ..
After tmux is installed to $TOOLPATH/bin, do not forget to add where $TOOLPATH/bin is to your .bashrc. For a good example of .tmux.conf, please check here http://blog.longwin.com.tw/2011/04/tmux-learn-screen-config-2011/. The link is https://github.com/tsung/config/blob/master/shell/tmux.conf.
No comments:
Post a Comment