-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
113 lines (82 loc) · 3.75 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# Rebind the prefix from C-b to C-Space.
unbind C-b
#set-option -g prefix C-Space
set-option -g prefix C-y
#bind-key C-Space send-prefix
bind-key C-y send-prefix
# Support 256 colors in the terminal emulator.
set-option -g default-terminal "xterm-256color"
# toggle mouse support on/off
bind-key -n F12 set-window-option mouse \; display-message "toggle mouse"
# Disable the delay between an escape key press and subsequent characters.
# This increases Vim responsiveness.
set-option -sg escape-time 0
# Set the base index for windows to 1 instead of 0.
set-option -g base-index 1
# Automatically re-number windows after one of them is closed.
set-option -g renumber-windows on
# Set the base index for panes to 1 instead of 0.
set-window-option -g pane-base-index 1
# Make the prefix and 0 go to window number 10 (I use window numbering starting from 1).
bind-key 0 select-window -t :10
# Scrollback limit.
set-option -g history-limit 10000
# Monitor window activity. Windows with activity are then highlighted in the
# status line.
set-window-option -g monitor-activity off
# Prevent tmux from displaying "Activity in window X" messages.
set-option -g visual-activity off
# Enable vi keys.
set-option -g status-keys vi
set-window-option -g mode-keys vi
# Easy config reload
bind-key r source-file ~/.tmux.conf \; display-message " ↻ tmux.conf"
# Enable setting of terminal-emulator titles.
set-option -g set-titles on
set-option -g set-titles-string "#H"
# Setting automatic-rename alters the name of the window based upon its
#set-window-option -g automatic-rename
# Pane splitting.
bind-key | split-window -h -c "#{pane_current_path}"
bind-key - split-window -v -c "#{pane_current_path}"
# Allow the arrow key to be used immediately after changing windows.
set-option -g repeat-time 0
# Use Alt-arrow keys without prefix key to switch panes
bind-key -n M-Left select-pane -L
bind-key -n M-Right select-pane -R
bind-key -n M-Up select-pane -U
bind-key -n M-Down select-pane -D
# Use Ctrl-arrow without prefix to resize panes
bind-key -n C-Left resize-pane -L 3
bind-key -n C-Right resize-pane -R 3
bind-key -n C-Up resize-pane -U 3
bind-key -n C-Down resize-pane -D 3
# Shift arrow to switch windows
bind-key -n S-Left previous-window
bind-key -n S-Right next-window
#### COLOUR (Solarized 256)
# default statusbar colors
set-option -g status-style default,bg=colour235,fg=colour136
# default window title colors
set-window-option -g window-status-style dim,bg=default,fg=colour244
# active window title colors
set-window-option -g window-status-current-style bright,bg=default,fg=colour166
# pane border
set-option -g pane-border-style fg=colour235 #base02
set-option -g pane-active-border-style fg=colour240 #base01
# message text
set-option -g message-style bg=colour235,fg=colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
set-option -g status-left-length 32
set-option -g status-left "#[fg=colour235,bg=colour252] #h #[fg=colour252,bg=colour238]#[fg=colour245,bg=colour238] #S #[fg=colour238,bg=colour235]#[fg=colour255,bg=colour235] "
set-option -g status-right-length 100
set-option -g status-right "#[fg=colour238,bg=colour235]#[fg=colour245,bg=colour238] #(whoami) %d.%m.%Y #[fg=colour252,bg=colour238]#[fg=colour235,bg=colour252] %H:%M "
set-option -g window-status-format "#[fg=white,bg=colour235] #I #W "
set-option -g window-status-current-format "#[fg=colour235,bg=colour33]#[fg=colour25,bg=colour33] #I #W #[fg=colour33,bg=colour235]"
# bell
set-window-option -g window-status-bell-style fg=colour235,bg=colour160 #base02, red
set-option -g status-position top