-
Notifications
You must be signed in to change notification settings - Fork 7
/
.tmux.conf
108 lines (85 loc) · 2.85 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
# vim: set ft=.tmux.conf:
unbind C-b
#set -g prefix C-a
#bind C-a send-prefix
set -g prefix F10
set-option -g prefix F10
set-option -g prefix2 C-p
bind F10 send-prefix
# splitting
unbind %
bind \ split-window -h
unbind '"'
bind - split-window -v
#splitting on the same dir:
bind _ split-window -v -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"
# moving between panes with vim movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
set -g set-titles on
#set-window-option -g utf8 on
#set -g status-utf8 on
# resize panes with vim movement keys
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# sync panes:
bind-key e set-window-option synchronize-panes
#scrolling issues:
set -g default-terminal "screen-256color"
#set -g default-terminal "xterm-termite"
set-option -g xterm-keys on
# allow mouse:
set -g mouse on
# status bar:
set -g status-left ''
set -g status-justify centre
set -g status-right '#[fg=colour234,bold,bg=colour254,bold] %B #[fg=colour234,bold,bg=colour254,bold]%d, #[fg=colour234,bold,bg=colour254,bold]%Y#[fg=default] #[fg=colour180,bold,bg=colour236,bold] %R '
set -g status-right-length 50
set -g status-bg default
set-option -gw window-status-activity-bg black
set-option -gw window-status-activity-fg red
set -g visual-activity on
# Hybrid:
setw -g window-status-format '#[fg=colour236,bold,bg=colour180,bold] #I #[fg=colour180,bold,bg=colour236,bold] #W '
setw -g window-status-current-format '#[fg=colour180,bold,bg=colour236,bold] #I #[fg=colour236,bold,bg=colour249,bold] #W '
# Paper:
#setw -g window-status-format '#[fg=colour254,bold,bg=colour31,bold] #I #[fg=colour31,bold,bg=colour254,bold] #W '
#setw -g window-status-current-format '#[fg=colour31,bold,bg=colour254,bold] #I #[fg=colour254,bold,bg=colour31,bold] #W '
set -g base-index 1
set -g pane-base-index 1
# switch windows alt+number
bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
bind-key -n M-4 select-window -t 4
bind-key -n M-5 select-window -t 5
bind-key -n M-6 select-window -t 6
bind-key -n M-7 select-window -t 7
bind-key -n M-8 select-window -t 8
bind-key -n M-9 select-window -t 9
set-option -g allow-rename off
# Reload .tmux.conf
bind-key r source-file ~/.tmux.conf
# Escape time
set -g escape-time 20
# vi mode:
setw -g mode-keys vi
# renumber-windows on
set-option -g renumber-windows on
# pane movement
bind-key a command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
set-option -g pane-active-border-fg red
# Auto start the windows I need
new -n dev
split-window -h -p 50
neww -n misc 'exec weechat'
split-window -h -p 50
neww -n staging 'exec ssh [email protected]'
split-window -h -p 50 'exec ssh [email protected]'
selectw -t 1