-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
63 lines (49 loc) · 2.24 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
# C-a and C-b are too ingrained in me as readline shortcuts
set -g prefix C-Space
# 'C-Space Space' and 'C-Space C-Space' sends actual 'C-Space'
bind-key Space send-prefix
bind-key C-Space send-prefix
# Use mouse for copy mode, choice mode etc.
set -g mode-mouse on
# Resize panes by dragging their borders.
set -g mouse-resize-pane on
# Clicking pane selects that pane and passes click to the program in that pane.
set -g mouse-select-pane on
# Clicking window name in status line selects that window.
set -g mouse-select-window on
# Time tmux waits while intercepting escape key.
set -sg escape-time 0
# http://blog.hawkhost.com/2010/06/28/tmux-the-terminal-multiplexer/
unbind %
bind | split-window -h
bind - split-window -v
# see https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
set-option -g default-command "reattach-to-user-namespace -l zsh"
# http://unix.stackexchange.com/questions/1045/getting-256-colors-to-work-in-tmux
# Support for both screen-256color and xterm-256color is patchy, experimental:
set -g default-terminal "screen-256color"
#set -g default-terminal "xterm-256color"
# vertical split border: solid dark blue
set -g pane-active-border-bg colour17
set -g pane-active-border-fg colour17
set -g pane-border-bg colour17
set -g pane-border-fg colour17
# Transfer tmux clipboard to Mac OS X
# See: http://rhnh.net/2011/08/20/vim-and-tmux-on-osx#comment-6565
bind C-y run-shell "reattach-to-user-namespace -l zsh -c 'tmux show-buffer | pbcopy'"
# Highlight window name in status bar on activity.
set-window-option -g monitor-activity on
# Powerline
set -g status-left-length 52
set -g status-right-length 451
set -g status-fg white
set -g status-bg colour234
set -g window-status-activity-attr bold
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
set -g status-left "#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]⮀"
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"