-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
90 lines (68 loc) · 2.19 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
# C-a is the prefix now
unbind C-b
set-option -g prefix C-a
bind-key C-a last-window
bind-key C-l last-pane
setw -g monitor-activity on
set -g visual-activity on
set -g status-justify centre
# Quick view of processes
bind '~' split-window "exec htop"
# Pane and window numbering
set -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
# split panes using v and b
bind v split-window -h
bind b split-window -v
unbind '"'
unbind %
# reload config file
bind r source-file ~/.tmux.conf
# ask for window name on new window
bind-key c command-prompt -p "Window Name:" "new-window; rename-window '%%'"
# switch panes using vim navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize-panes using vim style navigation
bind-key H resize-pane -L 5
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key L resize-pane -R 5
# switch between windows using Shift-arrow
bind -n S-Left previous-window
bind -n S-Right next-window
# No delay for escape key press
set -sg escape-time 0
# Synchronize panes
bind-key y set-window-option synchronize-panes
set -g default-terminal "xterm"
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-bg black #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
# set-option -g pane-border-fg black #base02
# set-option -g pane-active-border-fg brightgreen #base01
# message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
set-option -g default-shell /bin/zsh
set -g default-terminal "screen-256color"
set -g terminal-overrides "xterm:colors=256"