From 46e7579a2b3bf61a7939c3a1141a7a21a3c90609 Mon Sep 17 00:00:00 2001 From: Jedrzej Orbik Date: Fri, 25 Oct 2024 15:29:41 +0200 Subject: [PATCH] Set always mouse on with tmux --- scripts/debian/install_min.sh | 2 +- stow/common/dot-tmux.conf | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/debian/install_min.sh b/scripts/debian/install_min.sh index 188c142..d4cac10 100755 --- a/scripts/debian/install_min.sh +++ b/scripts/debian/install_min.sh @@ -297,7 +297,7 @@ sudo locale-gen en_US sudo locale-gen en_US.UTF-8 # .tmux.conf -grep -qxF 'set-option -g default-shell /bin/zsh' $HOME/.tmux.conf || echo "set-option -g history-limit 125000\nset-option -g default-shell /bin/zsh" >>$HOME/.tmux.conf +grep -qxF 'set -g default-shell /bin/zsh' $HOME/.tmux.conf || echo "set -g history-limit 125000\nset -g default-shell /bin/zsh\nset -g mouse on" >>$HOME/.tmux.conf # set up thefuck if ! command -v thefuck &>/dev/null; then diff --git a/stow/common/dot-tmux.conf b/stow/common/dot-tmux.conf index dac75a9..78f7adf 100644 --- a/stow/common/dot-tmux.conf +++ b/stow/common/dot-tmux.conf @@ -1,5 +1,5 @@ -set-option -g history-limit 125000 -set-option -g default-shell /bin/zsh +set -g history-limit 125000 +set -g default-shell /bin/zsh bind-key "T" run-shell "sesh connect \"$( sesh list | fzf-tmux -p 55%,60% \ @@ -54,7 +54,7 @@ bind-key @ choose-window 'join-pane -h -s "%%"' bind-key C-@ choose-window 'join-pane -s "%%"' bind-key ! break-pane -t : set -g repeat-time 300 -set-option -g default-terminal "tmux-256color" +set -g default-terminal "tmux-256color" set -sa terminal-overrides ",*:RGB" # utf8/color hack set -sa terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support set -sa terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colors - needs tmux-3.0 @@ -72,7 +72,7 @@ bind-key D switch -t default bind -n C-l send-keys C-l \; run-shell "sleep .2s" \; clear-history if-shell -b '[ `tmux -V | cut -d" " -f2 | tr -d " |\-|.|[:alpha:]"` -ge 33 ]' \ - 'set-option -g allow-passthrough on' + 'set -g allow-passthrough on' # seamless navigation between nvim and tmux based on https://www.reddit.com/r/vim/comments/c11cad/comment/eran9h5/ is_vim="ps -o state= -o comm= -t '#{pane_tty}' \