Last active
May 25, 2016 17:28
-
-
Save anmolgarg/7066762cf7b2b1f0f325 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install tmux on CentOS 6.7 | |
# Yum Install Dependencies | |
sudo yum -y install gcc kernel-devel make ncurses-devel | |
# Download Sources for libevent 2.0.22 and Make and Install | |
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz | |
tar -xvzf libevent-2.0.22-stable.tar.gz | |
cd libevent-2.0.22-stable | |
./configure --prefix=/usr/local | |
make | |
sudo make install | |
cd .. | |
rm -rf libevent-2.0.22-stable.tar.gz | |
# Download Sources for tmux 2.1 and Make and Install | |
curl -OL https://github.com/tmux/tmux/releases/download/2.1/tmux-2.1.tar.gz | |
tar -xvzf tmux-2.1.tar.gz | |
cd tmux-2.1 | |
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local | |
make | |
sudo make install | |
cd .. | |
rm -rf tmux-2.1.tar.gz | |
# Close Your Terminal Window (flushes cached tmux executable) | |
# Open New Shell and Check tmux Version | |
tmux -V | |
# tmux cheatsheet - https://gist.github.com/MohamedAlaa/2961058 | |
# run using `bash -c "$(curl -fsSL https://gist.githubusercontent.com/anmolgarg/7066762cf7b2b1f0f325/raw/install_tmux2dot1.sh)"` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tmux shortcuts & cheatsheet
from host
start new:
start new with session name:
attach:
attach to named:
list sessions:
kill session:
kill all sessions:
in session
detach from session without killing:
exit from session with kill:
scroll through session: