-
Notifications
You must be signed in to change notification settings - Fork 22
/
tmux.conf
84 lines (64 loc) · 1.99 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
# Use Ctrl-X for tmux commands
unbind C-b
set-option -g prefix C-Space
unbind C-Space
bind C-Space send-prefix
# Reduce command delay
set -s escape-time 1
# Window numbering should start at 1
set -g base-index 1
# Same for panes
setw -g pane-base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# renumber windows sequentially after closing any of them
set -g renumber-windows on
# Easy reloading of config file
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Use custom bindings for splitting panes
bind | split-window -h
bind - split-window -v
# Use vim movements to switch between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# Cycle through windows
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Enable 256 color display
set -g default-terminal "screen-256color"
# Status bar left
set -g status-left-length 40
set -g status-left "Session: #S #I #P"
# Status bar right
set -g status-right "%d %b %R"
# soften status bar color from harsh green to light gray
set -g status-bg '#666666'
set -g status-fg '#aaaaaa'
# Refresh status bar info every 60 seconds
set -g status-interval 60
# Center window list
set -g status-justify centre
# Monitor activity in other windows
setw -g monitor-activity on
set -g visual-activity on
# This makes OS X's terminal's native scrollbar work in tmux.
set-option -g mouse on
# Fix copy/paste in vim running inside tmux. Not sure what's happening here but
# this fixes it. Found via this blog post:
#
# http://www.tylercipriani.com/2013/02/09/vim-mac-osx-tmux-clipboard.html
#
# And it requires doing this first:
#
# $ brew install reattach-to-user-namespace --with-wrap-pbcopy-and-pbpaste
set-option -g default-command "reattach-to-user-namespace -l zsh"
# Local config
if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local'