forked from mattbrictson/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 6
/
tmux.conf
90 lines (69 loc) · 2.35 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
# Use 256 colors
set -g default-terminal "screen-256color"
# Bind Control key to match Screen
# Jury's still out on this, since it would clobber the nice in-command navigation shortcut to
# jump to the beginning of the line.
# unbind C-b
# set -g prefix C-a
# Use vi key bindings
set -g status-keys vi
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# Control+C-a to go to previous window
bind-key C-a last-window
# Enable mouse mode
setw -g mouse on
# Status bar options
set -g status-utf8 on
set -g status-fg red
set -g status-bg colour235
set -g status-left-length 60
set -g status-right-length 30
set -g status-left "#[fg=green](#S) #(whoami)@#H#[default]"
set -g status-right "#[fg=blue]%H:%M#[default]"
# Window title Options
setw -g window-status-fg colour012
setw -g window-status-bg colour235
setw -g window-status-attr dim
# active window title colors
set -g window-status-format '#I:#W#F'
set -g window-status-current-format ' #[bg=red,fg=colour231]#I:#W '
setw -g mode-fg colour231
setw -g mode-bg red
setw -g mode-attr bright
# set window and pane index to 1 (0 by default)
set -g base-index 1
setw -g pane-base-index 1
# command/message line colors
set -g message-command-style fg=colour235,bg=yellow,bright
set -g message-style fg=colour235,bg=yellow,bright
# Remap split window keys
unbind % # Remove default binding since we’re replacing
bind | split-window -h
bind _ split-window -v
# Automatically rename the status bar based on what's running
setw -g automatic-rename on
# Resize to the smallest client actively viewing a window
setw -g aggressive-resize off
# Don't wait so long for commands
set -s escape-time 0
# Resize panes with arrows
bind-key Down resize-pane -D 10
bind-key Left resize-pane -L 10
bind-key Right resize-pane -R 10
bind-key Up resize-pane -U 10
# Move cursor between panes with h,j,k,l
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Enable window selector
unbind '"'
bind-key '"' choose-window
# Redraw status bar every n seconds
set -g status-interval 5