dotfiles/ubuntu/install-tmux.sh

19 lines
486 B
Bash
Raw Normal View History

#!/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
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
./configure && make
sudo make install
2020-06-02 07:55:57 +00:00
rm -rf /tmp/tmux
rm -rf /tmp/tmux.tar.gz
2020-06-02 07:55:57 +00:00
popd