dotfiles/ubuntu/install-tmux.sh

19 lines
525 B
Bash
Raw Normal View History

#!/bin/bash
2020-06-02 07:55:57 +00:00
set -e
2020-07-13 08:47:59 +00:00
sudo apt install libevent-dev libncurses5-dev bison -y
2020-05-15 02:47:57 +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
2020-06-02 08:36:31 +00:00
[ ! -f /tmp/tmux.tar.gz ] && curl -L https://gitee.com/klesh/tmux/repository/archive/$TMUX_VER?format=tar.gz -o /tmp/tmux.tar.gz
rm -rf /tmp/tmux
2020-06-02 07:55:57 +00:00
mkdir -p /tmp/tmux
2020-06-02 08:36:31 +00:00
tar zxvf /tmp/tmux.tar.gz -C /tmp/tmux --strip 1
2020-06-02 07:55:57 +00:00
pushd /tmp/tmux
[ -f autogen.sh ] && sh autogen.sh
./configure && make
sudo make install
2020-06-02 07:55:57 +00:00
popd
2020-06-02 08:36:31 +00:00
rm -rf /tmp/tmux*