-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.tmux.conf
More file actions
67 lines (53 loc) · 2.3 KB
/
.tmux.conf
File metadata and controls
67 lines (53 loc) · 2.3 KB
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
set -g default-terminal "screen-256color"
set -g mouse on
set -g prefix C-Space
unbind C-b
bind-key C-Space send-prefix
unbind r
bind r source-file ~/.tmux.conf; display ".tmux.conf reloaded"
# window and split management
set -g base-index 1
setw -g pane-base-index 1
set-option -g renumber-windows on
set-option -g status-interval 5
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
bind s run-shell "~/.toggle_tmux_status_bar.sh"
bind -r m resize-pane -Z
unbind %
unbind h
bind h split-window -v -c "#{pane_current_path}"
unbind '"'
bind v split-window -h -c "#{pane_current_path}"
unbind 'c'
bind c new-window -c "#{pane_current_path}"
############################################################
# vim bindings
setw -g mode-keys vi
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
unbind -T copy-mode-vi MouseDragEnd1Pane
############################################################
# tmux plugin setup
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'egel/tmux-gruvbox'
set -g @tmux-gruvbox 'light'
run '~/.tmux/plugins/tpm/tpm'
############################################################
# Gruvbox theme customization
set -g mode-style "bg=colour0"
set -g message-style "bg=colour0"
set -g message-command-style "bg=colour0"
set -g status-style "bg=colour0"
set -g status-left "#[fg=#f9f5d7,bg=#7c6f64] #S #[fg=#7c6f64,bg=colour0,nounderscore,noitalics]"
set -g status-right "#[fg=#7c6f64,bg=colour0,nobold,nounderscore,noitalics]#[fg=#f9f5d7,bg=#7c6f64] %I:%M %p "
setw -g window-status-activity-style "underscore,bg=colour0"
setw -g window-status-separator ""
setw -g window-status-format "#[fg=colour0,bg=#7c6f64,nobold,nounderscore,noitalics]#[fg=colour0,bg=#7c6f64,nobold] #W #F #[fg=#7c6f64,bg=colour0,nobold,nounderscore,noitalics]"
setw -g window-status-current-format "#[fg=colour0,bg=colour215,nobold,noitalics,nounderscore]#[bg=colour215,fg=colour239,nobold] #W#{?window_zoomed_flag, ,} #[bg=colour0,fg=colour215,nobold,noitalics,nounderscore]"
############################################################
# configs from tmux sensible
set -s escape-time 0
set -g focus-events on
############################################################