/
.tmux.conf
49 lines (39 loc) · 1.19 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
# set the command prefix to match screen
set -g prefix C-a
unbind C-b
# use vi key bindings
setw -g mode-keys vi
# turn on mouse mode
setw -g mode-mouse on
# set the scrollback
set -g history-limit 5000
# force tmux to use utf-8
setw -g utf8 on
# Make window splits more like vim
unbind %
bind v split-window -h
bind h split-window -v
bind-key C-a last-window
# Status bar colors
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'
set-window-option -g window-status-current-bg red
# Make pasteboard work (on OS X)
#set-option -g default-command "/opt/local/bin/reattach-to-user-namespace -l zsh"
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind C-v run "reattach-to-user-namesapce pbpaste | tmux load-buffer - && tmux paste-buffer"
# Add more natural pane selection keys.
bind-key C-h select-pane -L
bind-key C-j select-pane -D
bind-key C-k select-pane -U
bind-key C-l select-pane -R
# New session key
bind-key C-N new-session
# Add resizing keys
bind-key K resize-pane -U 16
bind-key J resize-pane -D 15
bind-key L resize-pane -R 15
bind-key H resize-pane -L 15
# Add session recording key
bind-key H pipe-pane -o 'cat >> $HOME/#W-`date +%s`-tmux.log'