-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
43 lines (31 loc) · 1.1 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
42
43
set -g default-terminal "screen-256color"
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# 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
# screen-ism: C-a K kills window
bind-key K confirm-before -p "kill-window #W? (y/n)" kill-window
# screen-ism: C-a a switches to last window
bind-key C-a last-window
# don't rename windows automatically
set-option -g allow-rename off
set-option -g history-limit 10000
set-option -g status-fg magenta
set-option -g status-bg default
set-option -g status-interval 1
set-option -g status-left "[#h:#S] "
set-option -g status-right "#[fg=green]%Y/%m/%d %H:%M:%S"
set-option -g status-left-length 20
setw -g window-status-current-fg black
setw -g window-status-current-bg magenta
set-option -g visual-bell on
set-option -g bell-action current
set-option -g mode-keys vi
set-option -g status-keys vi