fix: upgrade tmux

This commit is contained in:
Klesh Wong 2023-01-14 10:25:07 +08:00
parent 59bf9abaf5
commit 23afb971d0
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ log 'Setting up tmux'
case "$PM" in
apt)
TMUX_VER=3.2a
TMUX_VER=3.3a
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
@ -16,7 +16,7 @@ case "$PM" in
#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
HTTPS_PROXY="$GITHUB_PROXY" curl -vv -L "$TMUX_SRC_URL" -o /tmp/tmux.tar.gz
fi
rm -rf /tmp/tmux
mkdir -p /tmp/tmux

View File

@ -18,7 +18,7 @@ set-option -g set-titles-string "#S / #W"
############################
setw -g mode-keys vi
set -g status-keys vi
set -g default-shell $TMUX_SHELL
set -g default-shell /usr/bin/fish
# set -g prefix C-h
bind c new-window -c '#{pane_current_path}'
bind '"' split-window -c '#{pane_current_path}'