-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
74 lines (55 loc) · 1.97 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
# reload tmux source:
# tmux source-file ~/.tmux.conf
set -g default-terminal "xterm-256color"
# brew install reattach-to-user-namespace
set-option -g default-command "reattach-to-user-namespace -l $SHELL"
#set-option -g default-shell /bin/zsh
# Change bind-key to ctrl+j
set -g prefix C-j
unbind C-b
bind C-j send-prefix
# Fix ctrl+l
unbind C-l
bind C-l send-keys 'C-l';
set -g mode-mouse on
# copy with 'enter' or 'y' and send to mac os clipboard: http://goo.gl/2Bfn8
# unbind -t vi-copy Enter
# bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# doesn't work
# bind y run-shell "reattach-to-user-namespace -l zsh -c 'tmux show-buffer | pbcopy'"
# not working
# bind-key -n C-L next-window
# bind-key -n C-H last-window
# Setup vim style copy and paste for copy-mode (going through history)
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# Status Bar #####################################
# enable UTF-8 support in status bar
# set -g status-utf8 on
# set refresh interval for status bar
set -g status-interval 30
# center the status bar
set -g status-justify left
# show session, window, pane in left status bar
set -g status-left-length 40
set -g status-left '#[fg=colour68]#S#[fg=white] #I:#P#[default]'
# show hostname, date, time, and battery in right status bar
set-option -g status-right '#[fg=colour68]#H#[default] %m/%d/%y %I:%M\
#[fg=red]#(battery discharging)#[default]#(battery charging)'
# Colors #########################################
# colour180 (orange)
# colour68 (blue)
# status bar
set -g status-bg colour235
set -g status-fg white
# highlight current window
set-window-option -g window-status-current-fg colour15
set-window-option -g window-status-current-bg colour68
# active pane
set -g pane-border-fg colour235
set -g pane-border-bg black
set -g pane-active-border-fg colour68
set -g pane-active-border-bg black