-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
42 lines (31 loc) · 1.11 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
# Use 256 colors by default
set -g default-terminal "screen-256color"
# Set the prefix to <C-a> (feels screen-like)
unbind C-b
set -g prefix C-a
# Change the split commands
unbind %
bind | split-window -h
bind - split-window -v
# Set status-bar options
set-option -g status on
set-option -g status-interval 1
set-option -g status-bg white
set-option -g status-fg red
set-option -g status-left "[#(date '+%T %a %b %d')]"
set-option -g status-left-length 22
set-option -g status-right-length 0
set-option -g status-right ""
# Copy/Pase settings from http://robots.thoughtbot.com/post/55885045171
# Use vim keybindings in copy mode
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"
# Set more noticable active-border colors
set-option -g pane-active-border-fg black
set-option -g pane-active-border-bg white
set -g terminal-overrides 'xterm*:smcup@:rmcup@'