-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtmux_pre2_9.conf
89 lines (74 loc) · 2.49 KB
/
tmux_pre2_9.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
#Mouse support
set-option -g mouse on
set-option -g default-shell /bin/zsh
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Yank
# set -g @plugin 'tmux-plugins/tmux-yank'
# Scrolling
# set -g @plugin 'nhdaly/tmux-scroll-copy-mode'
# Open files easy
# This interferes with the "o" command in vi-copy mode
# set -g @plugin 'tmux-plugins/tmux-open'
# screen logging (prefix + shift + p, will start logging to file, for example)
set -g @plugin 'tmux-plugins/tmux-logging'
#Pain control
set -g @plugin 'tmux-plugins/tmux-pain-control'
# set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# You are supposed to be able to install plugins with the <binding>-I
# but it doesn't seem to work thru a proxy
# As a workaround, just run
# ~/.tmux/plugins/tpm/scripts/install_plugins.sh
# directly
run '~/.tmux/plugins/tpm/tpm'
# Status line left side
set -g status-left-length 40
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
# set -g status-utf8 on
# Status line right side
# 15% | 28 Nov 18:15
# set -g status-right "#(~/battery Discharging) | #[fg=cyan]%d %b %R"
set -g status-right '| %a %Y-%m-%d %H:%M'
# Update the status bar every sixty seconds
set -g status-interval 60
# Center the window list
set -g status-justify centre
# enable vi keys.
setw -g mode-keys vi
#NOTE: to get into vi-copy mode hit <leader>-[
# for block mode hit "v" before selection
# use <space> to start selection
# "y" will yank.
# shortcut for synchronize-panes toggle
bind C-s set-window-option synchronize-panes
set -g default-terminal "screen-256color"
# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
# set the status line's colors
set -g status-fg white
set -g status-bg black
## set the color of the window list
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr bright
# set colors for the active window
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
## pane colors
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow
# Command / message line
set -g message-fg white
set -g message-bg black
set -g message-attr bright
#My common tmux mods
run '~/.tmux/tmux_fixups.sh'
set-hook -g client-attached 'run-shell ~/.tmux/update_display.sh'
#My custom tmux settings
source-file ~/.mytmux.conf