tmux config

This commit is contained in:
rick 2021-08-19 09:52:51 +05:30
parent 13124e8ae1
commit afc88f4519
1 changed files with 32 additions and 0 deletions

View File

@ -1 +1,33 @@
set -s escape-time 0
# S- doesnt work with keys that send a different character when Shifted. bind S-n ..., bind S-1 ..., etc dont work. Use bind N ..., bind ! ..., etc instead.
# But if you want to bind Alt + Shift + ←, for example, then it is bind M-S-Left ....
#Shiftd keys also dont work with Ctrl because Ctrl-modified keys are case-insensitive in terminals. So while you can do bind C-N ... the binding will be triggered by either Ctrl + Shift + n or just Ctrl + n.
# more info at https://github.com/tmux/tmux/wiki/Modifier-Keys
# select panes using ctrl+h/j/k/l
bind -n C-h select-pane -L
bind -n C-l select-pane -R
bind -n C-k select-pane -U
bind -n C-j select-pane -D
# split using ctrl+shift+s/v
bind -n C-s split-window -h
bind -n C-v split-window -v
# resize panes
bind -n C-M-h resize-pane -L 5
bind -n C-M-l resize-pane -R 5
bind -n C-M-j resize-pane -D 5
bind -n C-M-k resize-pane -U 5
# move between windows
bind -n M-n next-window
bind -n M-p previous-window
# create new window
bind -n M-x new-window
# no need to bind close-window when you could just C-d
# list all windows
bind -n M-w choose-tree -Zw