Updated config
This commit is contained in:
@ -1,22 +1,26 @@
|
||||
# global options
|
||||
set -g base-index 1
|
||||
set -g terminal-overrides ",*:RGB"
|
||||
set -g escape-time 0
|
||||
set -g focus-events on
|
||||
set -g mouse on
|
||||
set -g prefix C-a
|
||||
set -g prefix C-Space
|
||||
|
||||
# unbind all
|
||||
unbind-key -a
|
||||
|
||||
# prefix using Ctrl-a
|
||||
bind C-a send-prefix
|
||||
# prefix using Ctrl-space
|
||||
bind C-Space send-prefix
|
||||
|
||||
# detach tmux using q
|
||||
bind q detach
|
||||
# detach tmux using d
|
||||
bind d detach
|
||||
|
||||
# split panes using s and d
|
||||
bind d split-window -h
|
||||
bind s split-window -v
|
||||
# kill pane using q
|
||||
bind q kill-pane
|
||||
|
||||
# split panes using arrow keys
|
||||
bind Right split-window -h
|
||||
bind Down split-window -v
|
||||
|
||||
# switch panes using Alt-arrow without prefix
|
||||
bind -n M-Left select-pane -L
|
||||
@ -24,5 +28,11 @@ bind -n M-Right select-pane -R
|
||||
bind -n M-Up select-pane -U
|
||||
bind -n M-Down select-pane -D
|
||||
|
||||
# resize panes using Shift-arrow without prefix
|
||||
bind -n S-Up resize-pane -U 5
|
||||
bind -n S-Down resize-pane -D 5
|
||||
bind -n S-Left resize-pane -L 5
|
||||
bind -n S-Right resize-pane -R 5
|
||||
|
||||
# theme
|
||||
source-file ~/.config/tmux/theme.conf
|
||||
|
Reference in New Issue
Block a user