Skip to content

Commit

Permalink
Set always mouse on with tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
Jendker committed Oct 25, 2024
1 parent 3ed5680 commit 46e7579
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/debian/install_min.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions stow/common/dot-tmux.conf
Original file line number Diff line number Diff line change
@@ -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% \
Expand Down Expand Up @@ -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
Expand All @@ -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}' \
Expand Down

0 comments on commit 46e7579

Please sign in to comment.