Created
November 2, 2018 04:39
-
-
Save thinkycx/8323b10474c2c9d35cc16c6355a56259 to your computer and use it in GitHub Desktop.
install latest tmux version from github/tmux/tmux on ubuntu
This file contains hidden or 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
#!/bin/bash | |
# date: 2018-11-02 | |
# author: thinkycx | |
# reference: https://bogdanvlviv.com/posts/tmux/how-to-install-the-latest-tmux-on-ubuntu-16_04.html | |
# test on: ubuntu 16.04 | |
sudo apt install -y automake | |
sudo apt install -y build-essential | |
sudo apt install -y pkg-config | |
sudo apt install -y libevent-dev | |
sudo apt install -y libncurses5-dev | |
# ensure tmux is not running | |
rm -rf /tmp/tmux | |
git clone https://github.com/tmux/tmux.git /tmp/tmux | |
cd /tmp/tmux | |
sh autogen.sh | |
# make | |
echo "[*] start to make..." | |
./configure && make | |
# install | |
echo "[*] start to install..." | |
sudo make install | |
# remove | |
echo "[*] rm -rf /tmp/tmux" | |
cd - | |
rm -rf /tmp/tmux | |
# check tmux version | |
echo "[*] now your tmux version:" | |
tmux -V |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment