-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.tmux.conf
83 lines (68 loc) · 2.23 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
# terminal name must come before new sessions
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# bind key
set -g prefix C-a
bind C-a send-prefix
unbind C-b
set -g display-time 4000
set -g focus-events on
set -g history-limit 50000
set -g status-interval 5
set -sg escape-time 1
# window numbers
set -g base-index 1
setw -g pane-base-index 1
# reload
bind R source-file ~/.tmux.conf \; display-message "Config reloaded."
# join this pane and previous pane into a single window
bind j join-pane -s !
# vim + copy
# requires xclip
set -g mode-keys vi
set-option -g status-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -sel clip > /dev/null"
bind p run "xclip -o -sel clip | tmux load-buffer - ; tmux paste-buffer"
# keyboard
set-window-option -g xterm-keys on
set-option -g renumber-windows on
bind-key -n M-j new-window -c "#{pane_current_path}"
bind-key -n M-h previous-window
bind-key -n M-l next-window
bind-key -n M-left swap-window -d -t -1
bind-key -n M-right swap-window -d -t +1
# key press synchronize panes
bind a set-window-option synchronize-panes
# status line
setw -g automatic-rename on
set -g status-right ''
# colors
# Set the left and right status
set -g status-left '' # only window names
set -g status-right '[#S]' # user
# default statusbar colors
set-option -g status-style "fg=#a09f93,bg=#393939"
# default window title colors
set-window-option -g window-status-style "fg=#a09f93,bg=#393939"
# active window title colors
set-window-option -g window-status-current-style "fg=#a09f93,bg=#515151"
# pane border
set-option -g pane-border-style "fg=#a09f93"
set-option -g pane-active-border-style "fg=#d3d0c8"
# message text
set-option -g message-style "fg=#a09f93,bg=#393939"
# pane number display
set-option -g display-panes-active-colour "#d3d0c8"
set-option -g display-panes-colour "#a09f93"
# clock
set-window-option -g clock-mode-colour "#a09f93"
# bell
set-window-option -g window-status-bell-style "fg=#a09f93,bg=#747369"
# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'dracula/tmux'
set -g @dracula-show-flags false
set -g @dracula-show-left-icon session
set -g @dracula-plugins " "
run '~/.tmux/plugins/tpm/tpm'