-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
99 lines (74 loc) · 2.88 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
# tmux config
# General {{{
set -g prefix `
# Ring the bell if any background window rang a bell.
set -g bell-action any
# Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal screen-256color
# Status bar clock: month/day hour:minute
set -g status-right '%m/%d %H:%M'
# Watch for activity in background windows.
setw -g monitor-activity on
# ------------------------------------------------------------------------ }}}
# Colors {{{
# NOTE: these colors were chosen assuming Solarized Light in
# iTerm2. They might look horrible in other setups.
# Status messages and command input line
set -g message-bg blue
set -g message-fg white
# Set border colors for panes. This works fine for multiple panes, but has
# no useful effect in a 2-pane window.
set -g pane-border-bg default
set -g pane-border-fg white
set -g pane-active-border-bg default
set -g pane-active-border-fg green
# Status line color
set -g status-bg blue
set -g status-fg white
# Coloring for left-most status indicator
set -g status-left-bg brightgreen
set -g status-left-fg brightwhite
# For copy-mode and such I think. Look into this later.
#setw -g mode-bg red
#setw -g mode-fg brightwhite
# Highlight the current window in the status line
setw -g window-status-current-fg brightwhite
setw -g window-status-current-bg black
# Highlight windows with activity.
# Note, this seems to use inverse behavior, bg=fg, fg=bg...
# It must set inverse by default.
setw -g window-status-activity-fg white
setw -g window-status-activity-bg brightred
# ------------------------------------------------------------------------ }}}
# Mouse handling {{{
# Honor mouse clicks if they are passed through by the terminal.
# Select windows and panes, and drag-resize panes.
# This is great and all but it really messes with copying via e.g. iTerm.
# I'm doing this with iTerm key maps using hex codes.
# set -g mouse-select-pane on
# set -g mouse-select-window on
# set -g mouse-resize-pane on
# This has to do with tmux copy buffers and the mouse.
# Kind of screwy, need to evaluate some other month.
# setw -g mode-mouse on
# ------------------------------------------------------------------------ }}}
# Key bindings {{{
# Keep your finger on ctrl, or don't.
bind-key ^D detach-client
# Create splits and vertical splits
bind-key v split-window -h
bind-key ^V split-window -h
bind-key s split-window
bind-key ^S split-window
# Pane resize in all four directions using vi bindings.
# Can use these raw but I map them to ctrl-opt-<arrow> in iTerm.
bind-key J resize-pane -D
bind-key K resize-pane -U
bind-key H resize-pane -L
bind-key L resize-pane -R
# Use vi keybindings for tmux commandline input.
# Note that to get command mode you need to hit ESC twice.
set -g status-keys vi
# Use vi keybindings in copy and choice modes.
setw -g mode-keys vi
# ------------------------------------------------------------------------ }}}