-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
149 lines (113 loc) · 3.75 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# .tmux.conf
#
# @herebox
### globals ###
# set default shell to zsh
set-option -g default-shell /bin/zsh
# set default terminal
# see also oh-my-zsh tmux plugin
# 2014-12-14 this is failing on some remote terminals as unknown
# set -g default-terminal "screen-256color"
# set R to reload source file
bind R source-file ~/.tmux.conf
# manually reload source
# :source-file ~/.tmux.conf
# future
# setw -g aggressive-resize on
### clipboard handling ###
#
# see also xclip | xvkbd | xdotool
# see also osx pbcopy | pbpaste
# setting the tmux window name with copy paste,
# http://robots.thoughtbot.com/how-to-copy-and-paste-with-tmux-on-mac-os-x
# set-option -g default-command "reattach-to-user-namespace -l zsh"
# see http://superuser.com/questions/397076/tmux-exits-with-exited-on-mac-os-x
### keys ###
# duplicate command key use a and b
set -g prefix C-a
set -g prefix2 C-b
# nested session passthrough mimics screen 'C-a a command'
bind-key a send-prefix
# nested session passthrough for tmux default settings 'C-a b'
bind-key b send-prefix -2
# nested session passthrough
# -n specifies that initial C-a is optional
bind-key -n C-\ send-prefix
# start window numbering at 1
set -g base-index 1
# speed?
set -s escape-time 0
# lock screen settings
set -g lock-after-time 300
# use vim motion keys while in copy mode
setw -g mode-keys vi
# Automatically set window title
#setw -g automatic-rename
# splitting
bind | split-window -h
bind \ split-window -v
# movement
bind C-a last-window
bind C-b last-window
bind " " next-window
bind ^" " next-layout
# use the vim motion keys to move between panes
#bind h select-pane -L
#bind j select-pane -D
#bind k select-pane -U
#bind l select-pane -R
bind j command-prompt -p "join pane from:" "join-pane -s '%%'"
#bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
#need better binding key for send pane
# use the vim resize keys.
# the number at the end is how much the pane will be resized,
bind - resize-pane -D 2
bind + resize-pane -U 2
bind < resize-pane -L 2
bind > resize-pane -R 2
### status ###
# left
set -g status-left '+#(whoami)+'
# right add users load etc
#set status-right-length 50
set -g status-right '#H: (#(uptime | cut -d ":" -f 4-) ) +%H!%M+'
#set -g status-right '%a %b %d, %Y %H:%M'
# Set window notifications
setw -g monitor-activity on
set -g visual-activity on
# Turn off auto window naming
# allow-rename is new in 1.6
set-window-option -g allow-rename off
set-window-option -g automatic-rename off
### colors ###
# tmux solarized
#
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors.conf
# default statusbar colors
set -g status-attr default
set -g status-bg colour235 #base02
set -g status-fg colour136 #yellow
# default window title colors
set-window-option -g window-status-attr dim
set-window-option -g window-status-bg colour235 #base02
set-window-option -g window-status-fg colour136 #yellow
# current window title colors
set-window-option -g window-status-current-attr italics
set-window-option -g window-status-current-bg colour235 #base02
set-window-option -g window-status-current-fg colour166 #orange
# activity window title colors
# changes from alert to activity from tmux 1.5 to 1.6
set-window-option -g window-status-activity-attr dim
set-window-option -g window-status-activity-bg colour235 #base02
set-window-option -g window-status-activity-fg colour136 #yellow
# pane border
set-option -g pane-border-fg colour235 #base02
set-option -g pane-active-border-fg colour240 #base01
# message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green