-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
93 lines (75 loc) · 3.13 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
# use the default shell
set-option -g default-shell $SHELL
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# Set the default terminal mode to 256color mode.
set -g default-terminal "screen-256color"
#enable mouse input (scroll, select pane, etc.)
bind C-m set -g mouse on \; display "mouse ON"
bind m set -g mouse off \; display "mouse OFF"
# Splitting panes.
bind | split-window -h
bind - split-window -v
# homerow movement keys between panes
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# resizing panes
bind-key -r C-h resize-pane -L 5
bind-key -r C-j resize-pane -D 5
bind-key -r C-k resize-pane -U 5
bind-key -r C-l resize-pane -R 5
# move panes
bind-key -r "<" swap-window -t -1
bind-key -r ">" swap-window -t +1
bind C-b set-window-option synchronize-panes on \; set-window-option status-bg "#ba3a3a" \; display-message "Panes synched"
bind C-u set-window-option synchronize-panes off \; set-window-option status-bg "#424242" \; display-message "Panes un-synched."
# Set the base index for windows and panes to 1 instead of 0.
set -g base-index 1
setw -g pane-base-index 1
# Set the default terminal mode to 256color mode.
set -g default-terminal "screen-256color"
# panes
#set -g pane-active-border-fg "#00ffff" # active seperator
#set -g pane-active-border-bg colour0 # active seperator background (colour0 = blank)
#set -g pane-border-fg "#6c6c6c" # inactive seperator
#set -g pane-border-bg colour0 # inactive seperator background (colour0 = blank)
#set -g mode-style pane-active-border-fg=cyan,pane-active-border-bg=colour0,
# Command / message line.
#set -g message-fg="#FFFFFF"
#set -g message-bg="#000000"
#set -g message-attr bright
#set -g mode-style message-fg=white,message-bg=black,message-attr=bright
# statusbar
set -g status-position bottom # bar location
set -g status-justify left # pane number
set -g status-bg "#000000" # bar background
set -g status-fg white # bar text
set -g status-right '#[fg="#121212",bg="#000000",bold] %H:%M:%S ' # clock in bottom right
set -g status-right-length 35
set -g status-left-length 20
# Plugins
set -g @plugin 'tmux-plugins/tmux-ressurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
#set -g @plugin ''
# Plugin Configurations
# tmux-prefix-highlight
set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
set -g @prefix_highlight_fg 'white' # default is 'colour231'
set -g @prefix_highlight_bg 'blue' # default is 'colour04'
set -g @prefix_highlight_show_copy_mode 'on'
set -g @prefix_highlight_copy_mode_attr 'fg=black,bg=yellow,bold' # default is 'fg=default,bg=yellow'
set -g @prefix_highlight_output_prefix '< '
set -g @prefix_highlight_output_suffix ' >'
# tmux-continuum
set -g @continuum-boot 'on' # start on boot
set -g @continuum-restore 'on' # restore previous session
set -g @continuum-save-interval '10' # save interval in minutes
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'