[misc] upgrade tmux to 3.2
This commit is contained in:
parent
063611ea63
commit
b1ed92a7a0
|
@ -8,13 +8,13 @@ log 'Setting up tmux'
|
|||
|
||||
case "$PM" in
|
||||
apt)
|
||||
TMUX_VER=3.1b
|
||||
TMUX_VER=3.2
|
||||
if ! has_cmd tmux || [ "$(tmux -V)" != "tmux $TMUX_VER" ]; then
|
||||
sudo apt install libevent-dev libncurses5-dev bison autoconf bc -y
|
||||
TMUX_SRC_URL=https://github.com/tmux/tmux/releases/download/$TMUX_VER/tmux-$TMUX_VER.tar.gz
|
||||
if in_china; then
|
||||
TMUX_SRC_URL="https://gitee.com/klesh/tmux/repository/archive/$TMUX_VER?format=tar.gz"
|
||||
fi
|
||||
#if in_china; then
|
||||
#TMUX_SRC_URL="https://gitee.com/klesh/tmux/repository/archive/$TMUX_VER?format=tar.gz"
|
||||
#fi
|
||||
if [ ! -f /tmp/tmux.tar.gz ]; then
|
||||
curl -L "$TMUX_SRC_URL" -o /tmp/tmux.tar.gz
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user