-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
126 lines (95 loc) · 3.71 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
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix #incorrect?
bind a send-prefix
# send 'C-b' to a remote tmux session (nested)
bind-key -n C-b send-prefix
# split panes using | and -
bind-key | split-window -h
bind-key - split-window -v
unbind '"'
unbind %
# Use Shift-arrow keys without prefix key to switch panes
bind -n S-Left select-pane -L
bind -n S-Right select-pane -R
bind -n S-Up select-pane -U
bind -n S-Down select-pane -D
# Shift Alt to switch windows
bind -n M-Left previous-window
bind -n M-Right next-window
# Use vim keybindings.
setw -g mode-keys vi
# Pane colors.
#set-option -g pane-active-border-fg blue
# Alert when activity in a window.
setw -g monitor-activity on
# Use mouse. Turned off because mouse-based copying became difficult.
#setw -g mode-mouse on # hold Shift to do mouse-based copy and paste
# Set history scroll buffer size of 100k
set-option -g history-limit 100000
######################
### DESIGN CHANGES ###
# from: http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# with some personal updates by tayo
######################
# panes
## Status bar design
# status line
#set -g status-utf8 on
set -g status-justify left
set -g status-interval 1 # update every second
# messaging
set -g message-style fg=black,bg=yellow
set -g message-command-style fg=blue,bg=black
#window mode
# window status
setw -g window-status-format " #F#I:#W#F "
setw -g window-status-current-format " #F#I:#W#F "
setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W "
setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W "
# loud or quiet?
set-window-option -g monitor-activity on # Alert when activity in a window
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-option -g bell-action none
# set -g default-terminal "screen-256color" # <-- Use this one for MacOS
set -g default-terminal "tmux-256color" # <-- Use this one for Linux
# The modes {
setw -g clock-mode-colour colour135
setw -g mode-style bg=colour6,fg=colour0,bold,fg=colour196,bg=colour238
# }
# The panes {
set -g pane-border-style fg=black,fg=black,bg=colour235,fg=colour238
set -g pane-active-border-style fg=brightred,fg=brightred,bg=colour236,fg=colour51
# }
# The statusbar {
set -g status-position bottom
#set -g status-attr dim
set -g status-style bg=default,fg=colour12,bg=colour234,fg=colour137,bright
set -g status-left-length 30
#set -g status-left '#{pane_current_path}'
#attempt to show only the last N (40?) characters in pwd
#set -g status-left '#(pwd=##{pane_current_path}; echo ${pwd} \| tail -c 10)'
#set -g status-left '#(pwd=#{pane_current_path}; echo ${pwd})'
#set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S '
set -g status-right '#[fg=colour233,bg=colour241,bold] %Y-%m-%d #[fg=colour233,bg=colour245,bold] %H:%M:%S '
set -g status-right-length 50
#setw -g window-status-current-bg colour238
setw -g window-status-current-style bg=colour0,fg=colour11,dim,fg=colour81,bg=colour240
#setw -g window-status-current-attr bold
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
setw -g window-status-style bg=green,fg=black,reverse,fg=colour138,bg=colour235,none
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
# colors of the window alert activity notification
setw -g window-status-activity-style none,fg=colour242,bg=colour17
#
# colors of the bell
setw -g window-status-bell-style bold,fg=colour255,bg=colour1
# }
# The messages {
#set -g message-attr bold
#set -g message-fg colour232
#set -g message-bg colour166
# }