mirror of
https://github.com/SoPat712/dotfiles.git
synced 2025-08-22 02:48:45 -04:00
tmuxconf
This commit is contained in:
@@ -5,7 +5,7 @@ bind-key C-s send-prefix
|
|||||||
|
|
||||||
# split panes using | and -
|
# split panes using | and -
|
||||||
bind | split-window -h -c "#{pane_current_path}"
|
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 '"'
|
||||||
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
|
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cance
|
||||||
|
|
||||||
# 24 bit colors
|
# 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)
|
# enable mouse mode (tmux 2.1 and above)
|
||||||
set -g mouse on
|
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-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-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")'
|
tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
|
||||||
if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
|
if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
|
||||||
|
Reference in New Issue
Block a user