all repos — dotfiles @ 6d73a7095170c5d19f88ccf354cddb2ab5a52f62

linux dotfiles

update tmux config
Prithu Goswami prithugoswami524@gmail.com
Sun, 03 May 2020 17:26:55 +0530
commit

6d73a7095170c5d19f88ccf354cddb2ab5a52f62

parent

572db77ad5d8756a46e1662afdf3904a74e33b5c

1 files changed, 13 insertions(+), 0 deletions(-)

jump to
M .tmux.conf.tmux.conf

@@ -4,6 +4,9 @@ bind-key C-f send-prefix

bind C-c new-session +# Easy config reload +bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." + bind h select-pane -L bind j select-pane -D bind k select-pane -U

@@ -15,6 +18,16 @@ bind -r H resize-pane -L 2

bind -r J resize-pane -D 2 bind -r K resize-pane -U 2 bind -r L resize-pane -R 2 + +bind C-o rotate-window + +setw -g mouse on + +# smart pane switching with awareness of vim splits +# bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim$' && tmux send-keys C-h) || tmux select-pane -L" +# bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim$' && tmux send-keys C-j) || tmux select-pane -D" +# bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim$' && tmux send-keys C-k) || tmux select-pane -U" +# bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim$' && tmux send-keys C-l) || tmux select-pane -R" # set -g default-terminal "tmux-256color" # set -g terminal-overrides ",tmux-256color:Tc"