-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
94 lines (76 loc) · 2.7 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
# Ctrl-a instead of Ctrl-b
set -g prefix C-a
unbind C-b
bind C-a send-prefix
set -sg escape-time 1 # changing the Default Delay
set -g default-terminal "screen-256color"
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
setw -g mode-keys vi
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
bind-key a last-window # go to last-window
bind-key b break-pane # break pane into window
bind-key / command-prompt "find-window %1" # find window
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# kill
unbind K
bind K confirm-before "kill-window"
unbind ^x
bind ^x kill-pane
bind | split-window -h # alternative Ctrl-a "
bind - split-window -v # alternative Ctrl-a %
# panes navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes and repeat
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
# active pane
set -g pane-active-border-fg white
set -g pane-active-border-bg green
set -g message-fg black
set -g message-bg yellow
# status bar
#set -g status-justify centre
#set -g status-utf8 on
#set -g status-interval 60
#set -g status-left-length 20
#set -g status-bg black
#set -g status-fg white
#set -g status-left '#[fg=yellow]#(wemux status_users):'
#set -g status-right ""
# active window
setw -g window-status-format '[#I: #W]'
setw -g window-status-current-attr none
setw -g window-status-current-format '[> (#I) #W <]'
setw -g window-status-current-bg green
setw -g window-status-current-fg black
set -g base-index 1
#status bar
set -g status-left-length 32
set -g status-right-length 150
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]⮀"
set -g status-right "#(wemux status_users)"