-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf.BB
167 lines (124 loc) · 4.85 KB
/
.tmux.conf.BB
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
#set-option -g default-shell /opt/swt/bin/bash
#set-option -g default-command bash
#unbind-key -a
unbind C-b
#set -g prefix C-a
#set -g prefix C-t
#unbind C-b
#set -g prefix m-a
set -g prefix C-t
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on
set -sg escape-time 1
# Interact with xterm clipboard.
set-option -g set-clipboard on
#Make mouse useful in copy mode
setw -g mode-mouse on
#Allow mouse to select which pane to use
set -g mouse-select-pane on
set -g mouse-select-window on
#start tmux with my current environment
set-option -ga update-environment ' DISPLAY'
setw -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection # Begin selection in copy mode.
bind-key -t vi-copy 'C-v' rectangle-toggle # Begin selection in copy mode.
bind-key -t vi-copy 'y' copy-selection # Yank selection in copy mode.
#bind -t vi-copy v begin-selection
#bind -t vi-copy y copy-selection
#bind -t vi-copy Escape cancel
setw -g monitor-activity on
set -g visual-activity off
set -g monitor-content 'hi'
setw -g automatic-rename off
#prevent 2 open sessions from syncing their sizes
setw -g aggressive-resize on
#set -g default-terminal "xterm-256color"
set -g default-terminal "rxvt-256color"
unbind %
bind H split-window -v
unbind '"'
bind V split-window -h
bind Left select-pane -L
bind Right select-pane -R
bind Up select-pane -U
bind Down select-pane -D
# vim movement bindings
set-window-option -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind u last-window
bind-key -n M-NPage swap-window -t -1
bind-key -n M-PPage swap-window -t +1
# pane movement
bind-key J command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key K command-prompt -p "send pane to:" "join-pane -t '%%'"
bind-key z resize-pane -Z \; display-message "Zoom zoom zoom"
set -g history-limit 50000
set -g bell-action none
set -g bell-on-alert off
set -g display-panes-time 2000
set -g set-titles on
set -g set-titles-string "#{host} / #{session_name} : #I [ #W ]"
set -g pane-border-fg colour178
set -g pane-border-bg colour178
set -g pane-active-border-fg blue
set -g pane-active-border-bg blue
#if '[ `hostname -s` = lupin ] && ! tmux has-session -t main' 'source-file $HOME/.tmux/lupin.conf'
#if '[ `hostname -s` = linxdev23 ] ' 'source-file $HOME/.tmux.conf.prod'
#if '[ `hostname -s` = p019 ] ' 'source-file $HOME/.tmux.conf.prod'
#if '[ 'hostname -s' = linxdev23 ] 'source-file ~/.tmux.conf'
#if '[ `hostname -s` = linxdev23 ] 'set -g pane-active-border-bg red'
if 'tmux has-session -t prod' 'source-file $HOME/.tmux.conf.prod'
set-window-option -g status-bg black
set-window-option -g status-fg colour178
set-window-option -g window-status-fg default
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
set-window-option -g window-status-current-fg default
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr "reverse"
set -g status-interval 1
#Bell colors
#setw -g window-status-bell-attr reverse,bold
#setw -g window-status-bell-bg red
#setw -g window-status-bell-fg green
#screen compatibility
bind-key A command-prompt "rename-window '%%'"
bind-key -r C-c new-window
bind-key -r C-d detach-client
# default statusbar colors
#set-window-option -g status-left "{#{session_name}} [#{host}]"
set-window-option -g status-left "{#{session_name}}"
set-window-option -g status-left-length 30
set-window-option -g status-left-fg colour14
set-window-option -g status-left-bg black
# default window title colors
set-window-option -g window-status-fg red #colour244 #base0
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
set-window-option -g status-right " #[fg=red,bold] #(cat ~/.tmuxAlertStart) #[fg=green,bold] #(cat ~/.tmuxAlertStop) #[fg=colour14] #T [%H:%M:%S] [%m/%d/%y]"
set-window-option -g status-right-length 70
set-window-option -g status-right-fg colour14
set-window-option -g status-right-bg black
#active window title colors
#set-window-option -g window-status-current-fg colour166 #orange
set-window-option -g window-status-current-fg green #orange
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
set-option -gw window-status-activity-style fg=yellow,bg=black,bold
#set -g status-left ' #[fg=cyan,bright]#10H#[fg=green]:#[fg=white]#S#[fg=green] | #[default]'
#set -g status-right '| #[fg=yellow]%y-%m-%d %H:%M '
set -g status-justify left
#enable copycat plugin
run-shell ~/.tmux/tmux-copycat-master/copycat.tmux
#enable tmux resurrect plugin
run-shell ~/.tmux/tmux-resurrect-master/resurrect.tmux
set -g @resurrect-strategy-vim 'session'
#enable tmux sessionist plugin
run-shell ~/.tmux/tmux-sessionist/sessionist.tmux
#enable tmux logging plugin
run-shell ~/.tmux/tmux-logging/logging.tmux
bind-key -n C-k send-keys -R C-m \; clear-history