-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
63 lines (47 loc) · 1.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
set -g status-bg blue
set -g status-fg black
# Get 256-bit colors
set -g default-terminal "tmux-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
# Switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
set -g mouse on
# Remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Start window numbering at 1
set -g base-index 1
bind h attach-session -c "#{pane_current_path}"
# set -g status-right "Paris #(TZ='Europe/Paris' date +%%H:%%M) | Toronto #(TZ='America/Toronto' date +%%H:%%M) | %d/%m/%y "
set -g status-right "Paris #(TZ='Europe/Paris' date +%%H:%%M) | Local #(date +%%H:%%M) | %d/%m/%y "
# Customize right status bar
set-window-option -g window-status-format " #I: #W "
set-window-option -g window-status-current-format " #I: #W "
# Customize current window style
set -g window-status-current-style fg=blue,bg=black
# Customize left status bar
set-window-option -g status-left " #S "
set-window-option -g status-left-style fg=black,bg=white
set-option -sg escape-time 10
set-option -ga terminal-overrides 'xterm-256color:Tc'
# Automatically set window titles
set-option -g set-titles on
set-option -g set-titles-string '#S.#I #W' # <session>.<window> <program name>
set -g pane-active-border-style bg=default,fg=blue
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-pain-control'
## <prefix>+u to view urls
set -g @plugin 'tmux-plugins/tmux-urlview'
set -g @yank_with_mouse off
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
set -g visual-bell on
# Renumber windows when one is closed
set-option -g renumber-windows on