2020-05-14 12:21:27 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-06-02 07:55:57 +00:00
|
|
|
set -e
|
|
|
|
|
2020-05-15 02:47:57 +00:00
|
|
|
sudo apt install libevent-dev libncurses5-dev -y
|
|
|
|
|
2020-05-14 12:21:27 +00:00
|
|
|
TMUX_VER=3.1b
|
2020-06-02 07:55:57 +00:00
|
|
|
#curl -L https://github.com/tmux/tmux/releases/download/$TMUX_VER/tmux-$TMUX_VER.tar.gz -o /tmp/tmux.tar.gz
|
|
|
|
curl -L https://gitee.com/klesh/tmux/repository/archive/$TMUX_VER?format=tar.gz -o /tmp/tmux.tar.gz
|
|
|
|
mkdir -p /tmp/tmux
|
|
|
|
tar zxvf /tmp/tmux.tar.gz -C /tmp/tmux
|
|
|
|
pushd /tmp/tmux
|
|
|
|
[ -f autogen.sh ] && sh autogen.sh
|
2020-05-14 12:21:27 +00:00
|
|
|
./configure && make
|
|
|
|
sudo make install
|
2020-06-02 07:55:57 +00:00
|
|
|
rm -rf /tmp/tmux
|
2020-05-14 12:21:27 +00:00
|
|
|
rm -rf /tmp/tmux.tar.gz
|
2020-06-02 07:55:57 +00:00
|
|
|
popd
|