.tmux.conf 1.09 KB
Newer Older
Jay Ta'ala's avatar
Jay Ta'ala committed
1
2
3
4
# Needed for using C-Left/Right for window switching with putty
set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@"

# create (h)orizontal and (v)ertical panes without prefix
5
6
bind -n C-h split-window -h
bind -n C-v split-window -v
Jay Ta'ala's avatar
Jay Ta'ala committed
7
8

# Resize panes without prefix
9
10
11
12
bind -n M-J resize-pane -D
bind -n M-K resize-pane -U
bind -n M-H resize-pane -L
bind -n M-L resize-pane -R
Jay Ta'ala's avatar
Jay Ta'ala committed
13
14
15
16

# zoom into pane
bind -n M-f resize-pane -Z

17
18
19
20
21
22
# Use Alt-hjkl without prefix key to switch panes
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D

Jay Ta'ala's avatar
Jay Ta'ala committed
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# Shift arrow to switch windows
bind -n C-Left previous-window
bind -n C-Right next-window

# No delay for escape key press
set -sg escape-time 0


# THEME
set -g default-terminal "screen-256color"
# set inactive/active pane styles
set -g window-style 'fg=colour247,bg=colour236'
set -g window-active-style 'fg=colour250,bg=black'