-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
77 lines (61 loc) · 2.24 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
###########################################################################"
#
# __
# / /_____ ___ __ ___ __
# / __/ __ `__ \/ / / / |/_/
# / /_/ / / / / / /_/ /> <
# \__/_/ /_/ /_/\__,_/_/|_|
# written by <3 mo1ein
###########################################################################"
# Improve colors
set -g default-terminal 'screen-256color'
# Set scrollback buffer to 10000
set -g history-limit 10000
# title
set -g set-titles on
set -g set-titles-string "tmux #I [ #W ]"
# Reload tmux config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded."
# vim
setw -g mode-keys vi
set -g mouse on
setw -g aggressive-resize on
# Customize the status line
set -g status-justify left
set -g status-position bottom
# status bar bottom color colour 28 29 34 is goood
set -g status-style fg=black,bg=colour28
set -g status-left ""
set -g status-right-style fg=black
# set name clearly in status bar #W session name #I means index
setw -g window-status-format ' #W:#I '
setw -g window-status-current-format ' #W:#I '
set -g status-right '#[fg=black,bg=colour28] %Y.%b.%d #[fg=white,bold,bg=black] %I:%M:%S %p '
set -g status-right-length 50
setw -g window-status-style bg=colour28,fg=black
setw -g window-status-current-style bg=black,bold,fg=white
set -g message-style bg=black,fg=white
# because 0 is too far ;)
set -g base-index 1
# border style
set -g pane-border-style fg=colour247
set -g pane-active-border-style fg=green
#set -g pane-border-style fg=colour247
#set -g pane-active-border-style fg=colour70
#set -g pane-active-border-style fg=colour51
# color when selected to copy 242 is good
setw -g mode-style fg=black,bg=colour241
setw -g monitor-activity on
setw -g visual-bell on
setw -g bell-action other
# auto reorder numerical number when exit window
set -g renumber-windows on
setw -g automatic-rename on
set -g allow-rename off
# switch to last window
bind Tab last-window
#list of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect' #save and restore tmux env
run '~/.tmux/plugins/tpm/tpm'