feat: upgrade tmux to 3.2a
This commit is contained in:
parent
20fc2e210a
commit
9d066d71b7
|
@ -6,10 +6,9 @@ DIR=$(dirname "$(readlink -f "$0")")
|
||||||
|
|
||||||
log 'Setting up tmux'
|
log 'Setting up tmux'
|
||||||
|
|
||||||
if ! has_cmd tmux; then
|
case "$PM" in
|
||||||
case "$PM" in
|
|
||||||
apt)
|
apt)
|
||||||
TMUX_VER=3.2
|
TMUX_VER=3.2a
|
||||||
if ! has_cmd tmux || [ "$(tmux -V)" != "tmux $TMUX_VER" ]; then
|
if ! has_cmd tmux || [ "$(tmux -V)" != "tmux $TMUX_VER" ]; then
|
||||||
sudo apt install libevent-dev libncurses5-dev bison autoconf bc -y
|
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
|
TMUX_SRC_URL=https://github.com/tmux/tmux/releases/download/$TMUX_VER/tmux-$TMUX_VER.tar.gz
|
||||||
|
@ -35,8 +34,7 @@ if ! has_cmd tmux; then
|
||||||
pacman)
|
pacman)
|
||||||
sudo pacman -S --noconfirm --needed tmux bc
|
sudo pacman -S --noconfirm --needed tmux bc
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
|
||||||
|
|
||||||
# symlink configuration
|
# symlink configuration
|
||||||
lnsf "$DIR/tmux/tmux.conf" "$HOME/.tmux.conf"
|
lnsf "$DIR/tmux/tmux.conf" "$HOME/.tmux.conf"
|
||||||
|
|
|
@ -72,6 +72,7 @@ nnoremap <leader>l <C-w>l
|
||||||
nnoremap <leader>oo <C-w>o
|
nnoremap <leader>oo <C-w>o
|
||||||
nnoremap <leader>q <C-w>q
|
nnoremap <leader>q <C-w>q
|
||||||
nnoremap <leader>x :!chmod +x %<Cr>
|
nnoremap <leader>x :!chmod +x %<Cr>
|
||||||
|
nnoremap <leader>scb :set scrollbind!<Cr>:set cursorbind!<Cr>
|
||||||
|
|
||||||
|
|
||||||
function! GetXCopyCmd()
|
function! GetXCopyCmd()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user