Skip to content

Instantly share code, notes, and snippets.

@droidlabour
Last active January 26, 2022 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save droidlabour/912a3db2606891222a792f280342aedc to your computer and use it in GitHub Desktop.
Save droidlabour/912a3db2606891222a792f280342aedc to your computer and use it in GitHub Desktop.
Install or Upgrade tmux
#!/bin/bash
#
# Install dependencies
#
sudo yum install -y libevent-devel ncurses-devel gcc make bison pkg-config git
#
# https://github.com/tmux/tmux/wiki/Installing#from-version-control
#
git clone https://github.com/tmux/tmux.git
cd tmux
sh autogen.sh
#
# --prefix must be set to /usr in order to overwrite
# the default tmux v1.8 (installed at /usr/bin) which is around 5year old
#
./configure --prefix=/usr
make && sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment