Skip to content

Instantly share code, notes, and snippets.

@j-min
Last active September 24, 2021 12:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j-min/815c566f702d8be0059e30d427a799e3 to your computer and use it in GitHub Desktop.
Save j-min/815c566f702d8be0059e30d427a799e3 to your computer and use it in GitHub Desktop.
tmux 2.6 install script (linux)
TMUX_VERSION=2.6
cd $HOME
# Dependencies
sudo apt install libevent-dev ncurses-dev -y
# Download tmux
wget https://github.com/tmux/tmux/releases/download/$TMUX_VERSION/tmux-$TMUX_VERSION.tar.gz
tar -xvzf tmux-$TMUX_VERSION.tar.gz
# Install tmux
cd tmux-$TMUX_VERSION
./configure && make
sudo make install
# Copy tmux into executable path
# if root => cp tmux /usr/local/bin
# if local => cp tmux $HOME/local/bin
# Remove tarball and directory
# rm -rf $HOME/tmux-$TMUX_VERSION tmux-$TMUX_VERSION.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment