Add tmux.conf
This commit is contained in:
parent
4cc175ef26
commit
712c4bb9ee
1 changed files with 37 additions and 0 deletions
37
dotfiles/shell/dot-tmux.conf
Normal file
37
dotfiles/shell/dot-tmux.conf
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
## remap prefix from 'C-b' to 'C-a'
|
||||||
|
#unbind C-b
|
||||||
|
#set-option -g prefix C-y
|
||||||
|
#bind-key C-b send-prefix
|
||||||
|
|
||||||
|
## split panes using h and v
|
||||||
|
unbind '"'
|
||||||
|
unbind %
|
||||||
|
bind h split-window -h
|
||||||
|
bind v split-window -v
|
||||||
|
|
||||||
|
# Start windows and panes at 1, not 0
|
||||||
|
set -g base-index 1
|
||||||
|
setw -g pane-base-index 1
|
||||||
|
|
||||||
|
## switch panes using vim keys
|
||||||
|
bind h select-pane -L
|
||||||
|
bind j select-pane -D
|
||||||
|
bind k select-pane -U
|
||||||
|
bind l select-pane -R
|
||||||
|
|
||||||
|
bind Left select-pane -L
|
||||||
|
bind Right select-pane -R
|
||||||
|
bind Up select-pane -U
|
||||||
|
bind Down select-pane -D
|
||||||
|
|
||||||
|
## Enable mouse control (clickable windows, panes, resizable panes)
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
## Enter copy mode with Enter and use vi mode
|
||||||
|
bind Enter copy-mode
|
||||||
|
bind -T copy-mode-vi v send -X begin-selection
|
||||||
|
bind -T copy-mode-vi C-v send -X rectangle-toggle
|
||||||
|
bind -T copy-mode-vi y send -X copy-selection-and-cancel
|
||||||
|
bind -T copy-mode-vi Escape send -X cancel
|
||||||
|
bind -T copy-mode-vi H send -X start-of-line
|
||||||
|
bind -T copy-mode-vi L send -X end-of-line
|
Loading…
Add table
Reference in a new issue