-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
77 lines (58 loc) · 2 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
# General settings
set -g history-limit 10000
# VI!
set -g mode-keys vi
# Fix word separators so they work as expected in copy-mode.
set -g word-separators " -_@/:,=()[]<>."
# Turn on focus events
set -g focus-events on
set -g mouse on
# Because I'm just used to C-a... okay?
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Let's play a little better with our X... but just a little.
bind C-c run "tmux show-buffer | xclip -sel clipboard > /dev/null"
bind C-v run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
# Remove suspend client because it is useless
unbind C-z
# Allow direct selection of panes
bind C-q select-pane -t 0
bind C-w select-pane -t 1
bind C-e select-pane -t 2
bind C-r select-pane -t 3
bind C-t select-pane -t 4
bind C-y select-pane -t 5
bind C-u select-pane -t 6
bind C-o select-pane -t 7
bind C-p select-pane -t 9
# Allow relative direction selection of panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Courtesy of solarized/tmux-colors-solarized
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-style bg=black,fg=yellow #base02,yellow
# default window title colors
set-window-option -g window-status-style fg=brightblue,bg=default #base0,default
# active window title colors
set-window-option -g window-status-current-style fg=brightred,bg=default
#orange,#default
# pane border
set-option -g pane-border-style fg=black #base02
set-option -g pane-active-border-style fg=brightgreen #base01
# message text
set-option -g message-style fg=brightred,bg=black #base02,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
# New windows/panes keep the same directory as current window
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# Fix delay in escaping within Vim
set -sg escape-time 0