From 2db3c1246b025301c59b8ac51fe3e3bc1c7b71b1 Mon Sep 17 00:00:00 2001 From: Josh Patra <30350506+SoPat712@users.noreply.github.com> Date: Wed, 24 Apr 2024 23:42:10 -0400 Subject: [PATCH] tmuxconf --- tmux/.tmux.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 2f3afab..d298ff2 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -5,7 +5,7 @@ bind-key C-s send-prefix # split panes using | and - bind | split-window -h -c "#{pane_current_path}" -bind - split-window -v -c "#{pane_current_path}" +bind _ split-window -v -c "#{pane_current_path}" unbind '"' unbind % @@ -26,7 +26,8 @@ bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cance # 24 bit colors -set-option -sa terminal-overrides ",xterm*:Tc" +# set-option -sa terminal-overrides ",xterm*:Tc" +set -g default-terminal "screen-256color" # enable mouse mode (tmux 2.1 and above) set -g mouse on @@ -62,6 +63,8 @@ bind-key -n M-j if -F "#{@pane-is-vim}" 'send-keys M-j' 'resize-pane -D 1' bind-key -n M-k if -F "#{@pane-is-vim}" 'send-keys M-k' 'resize-pane -U 1' bind-key -n M-l if -F "#{@pane-is-vim}" 'send-keys M-l' 'resize-pane -R 1' +bind -r m resize-pane -Z + tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")' if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \