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 ]' \