-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
42 lines (33 loc) · 1.02 KB
/
tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Allow for vim colors
# set -g default-terminal "screen-256color"
set -g default-terminal "xterm-256color"
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# switch panes with Alt-vim keybindings
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
# switch panes using Alt-arrow without prefix
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
# Vim-style swap Panes
bind-key J swap-pane -D
bind-key K swap-pane -U
# Resize panes
bind-key F8 resize-pane -D 5
bind-key F7 resize-pane -U 5
bind-key F9 resize-pane -L 5
bind-key F10 resize-pane -R 5
# No delay for ESC key presses
set -sg escape-time 0
# Add a status bar on each pane
set -g pane-border-status top
set -g pane-border-format "#{pane_index} #{pane_current_command} #{pane_current_path}"