This repository has been archived by the owner on Oct 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
_tmux.conf
99 lines (76 loc) · 3.83 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
set-option -g default-terminal screen-256color # Default termtype. If the rcfile sets $TERM, that overrides this value.
set-option -g status-utf8 on
set-window-option -g utf8 on
set-option -g history-limit 10000 # scrollback size
set-window-option -g monitor-activity on # Windows with activity are highlighted in the status line
set-option -g visual-activity on # Display a status line message when activity occurs
set-option -g bell-action any # Ring the bell if any background window rang a bell
#
# Keymapping
#
## Change lead key to e
unbind-key C-b
set-option -g prefix C-e
bind-key e send-prefix
bind-key C-d detach-client # PREFIX d == PREFIX PREFIX-d
bind-key R refresh-client \; display 'Redraw.' # Redraw the client (if interrupted by wall, etc)
set-window-option -g mode-keys vi # Use vi keybindings in copy and choice modes
unbind-key -t vi-copy v
bind-key -t vi-copy v begin-selection # Begin selection in copy mode
bind-key -t vi-copy C-v rectangle-toggle # Begin column selection in copy mode
bind-key -t vi-copy y copy-selection # Yank selection in copy mode
## Reload tmux config
unbind-key r
bind-key r source-file ~/.tmux.conf \; display 'Reloaded tmux config.'
#
# Windows and panes
#
set-window-option -g monitor-activity on # Set window notifications
set-window-option -g automatic-rename on # Automatically set window title
set-option -g history-limit 10000 # Increase scrollback history
set-option -g mouse on # Enable mouse
set-option -g base-index 1 # Index windows from 1
set-window-option -g pane-base-index 1 # Index tabs from 1
# move between panes with hjkl
bind-key h select-pane -L
bind-key l select-pane -R
bind-key j select-pane -D
bind-key k select-pane -U
# move between windows with JKL
bind-key K select-window -p
bind-key J select-window -n
bind-key C-e last-window # Shortcut to witch between two tabs
# Horizontal splits with s
unbind s
bind-key s split-window
# # Vertical split with v
unbind v
bind-key v split-window -h
#
# Color scheme
#
## default statusbar colors
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-attr default
## default window title colors
set-window-option -g window-status-bg "#565656" # grey
set-window-option -g window-status-fg white
set-window-option -g window-status-format " #I #W #F " # [index] [name] [status]
set-window-option -g window-status-attr dim
## active window title colors
set-window-option -g window-status-current-bg "#00E2FF" # cyan
set-window-option -g window-status-current-fg "#000000" # black
set-window-option -g window-status-current-attr bright
set-window-option -g window-status-current-format " #I #W #F " # [index] [name] [status]
## pane border
set-option -g pane-border-fg brightgreen
set-option -g pane-active-border-fg red
## message text
set-option -g message-bg black
set-option -g message-fg yellow
## pane number display
set-option -g display-panes-active-colour red
set-option -g display-panes-colour white
## clock
set-window-option -g clock-mode-colour cyan