Added .tmux.conf
This commit is contained in:
parent
c1e22d5642
commit
9726f7c32a
39
tmux/.tmux.conf
Normal file
39
tmux/.tmux.conf
Normal file
@ -0,0 +1,39 @@
|
||||
# remap prefix from 'C-b' to 'C-w'
|
||||
unbind C-b
|
||||
set-option -g prefix C-w
|
||||
bind-key C-w send-prefix
|
||||
|
||||
# Vim window split commands
|
||||
bind v split-window -h
|
||||
bind s split-window -v
|
||||
unbind '"'
|
||||
unbind %
|
||||
|
||||
# Enable mouse mode
|
||||
set -g mouse on
|
||||
|
||||
# Switch panes with vim keybindings
|
||||
bind k selectp -U
|
||||
bind j selectp -D
|
||||
bind h selectp -L
|
||||
bind l selectp -R
|
||||
|
||||
# Move panes with vim keybindings
|
||||
bind C-k resize-pane -U
|
||||
bind C-j resize-pane -D
|
||||
bind C-h resize-pane -L
|
||||
bind C-l resize-pane -R
|
||||
|
||||
# Move pane to the far right/left/bottom/top
|
||||
# Source: https://superuser.com/questions/1601701/tmux-how-to-move-current-pane-to-far-left-right-up-down-like-in-vim
|
||||
bind H splitw -fhb \; swapp -t ! \; killp -t !
|
||||
bind L splitw -fh \; swapp -t ! \; killp -t !
|
||||
bind J splitw -fv \; swapp -t ! \; killp -t !
|
||||
bind K splitw -fvb \; swapp -t ! \; killp -t !
|
||||
|
||||
# Vim quit key
|
||||
bind q killp
|
||||
unbind x
|
||||
|
||||
# Disable auto renaming panes
|
||||
set -g allow-rename off
|
Loading…
x
Reference in New Issue
Block a user