-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdot_tmux.conf
97 lines (75 loc) · 2.53 KB
/
dot_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
# Setting the delay between prefix and command
set -s escape-time 1
# Set the base index for windows to 1 instead of 0
set -g base-index 1
# Set the base index for panes to 1 instead of 0
setw -g pane-base-index 1
# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display 'Reloaded!'
# Splitting panes with | and -
bind | split-window -h
bind - split-window -v
# Moving between panes with Prefix h,j,k,l
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Quick window selection
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Pane resizing panes with Prefix H,J,K,L
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Mouse support
set -g mouse on
# Keep window's name after rename
set -g allow-rename off
setw -g mode-keys vi
# Shortcut for synchronize-panes toggle
bind C-s set-window-option synchronize-panes
# Split pane and retain the current directory of existing pane
bind _ split-window -v -c '#{pane_current_path}'
bind \\ split-window -h -c '#{pane_current_path}'
# Copy mode
bind Escape copy-mode
bind p paste-buffer
bind C-p choose-buffer
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# History
set -g history-limit 5000
######################
### DESIGN CHANGES ###
######################
# True color
set -g default-terminal 'tmux-256color'
set -ga terminal-overrides ',xterm-*:Tc'
# Loud or Quiet?
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
setw -g monitor-activity off
set -g bell-action none
# The modes
setw -g clock-mode-colour cyan
# The panes
set -g pane-border-style fg=black,bg=default
set -g pane-active-border-style fg=brightblack,bg=default
# The statusbar
set -g status-position bottom
set -g status-justify left
set -g status-interval 2
set -g status-style fg=white,bg=black,none
set -g status-left '#[fg=black,bg=blue,bold] #S '
set -g status-right '#(battery -tp) #[fg=white,bg=black] %d/%m #[fg=white,bg=brightblack] %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 20
# Window status
setw -g window-status-format '#[bg=black] #[fg=white,bg=brightblack] #I#[fg=white,bg=brightblack]:#[fg=white,bg=brightblack]#W #F '
setw -g window-status-current-format '#[bg=black] #[fg=black,bg=cyan] #I#[fg=black,bg=cyan]:#[fg=black,bg=cyan]#W#F '
set -g window-status-separator ''
# The messages
set -g message-command-style fg=cyan,bg=brightblack
set -g message-style fg=cyan,bg=brightblack