This repository has been archived by the owner on Nov 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
55 lines (49 loc) · 2.25 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
# screen prefix
set -g prefix C-space
unbind-key C-space
bind-key C-space send-prefix
# set 256col
set -ga terminal-overrides ",*256col*:Tc"
set -g default-terminal "screen-256color"
# List of plugins
# tmux plugin manager
set -g @plugin 'tmux-plugins/tpm'
# tmux vim navigation (vim style movement mapping)
set -g @plugin 'christoomey/vim-tmux-navigator'
# !! after all plugins !!
run '~/.tmux/plugins/tpm/tpm'
# setup seemless vim-split/tmux switch
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
#gruvbox
set-option -g default-shell /usr/bin/bash
set-option -g status "on"
set-option -g status-style bg=colour237,fg=colour223
set-option -g pane-active-border-style fg=colour250
set-option -g pane-border-style fg=colour237
set-option -g message-style bg=colour239,fg=colour223
set-option -g message-command-style bg=colour239,fg=colour223
set-window-option -g window-status-style bg=colour214,fg=colour237
set-window-option -g window-status-activity-style bg=colour237,fg=colour248
set-window-option -g window-status-current-style bg=red,fg=colour237
set-option -g display-panes-active-colour colour250
set-option -g display-panes-colour colour237
set-window-option -g clock-mode-colour colour109
set-option -g status-justify "left"
set-option -g status-left-style none
set-option -g status-left-length "80"
set-option -g status-right-style none
set-option -g status-right-length "80"
set-window-option -g window-status-separator ""
# right part with date and hour
set-option -g status-right "#[bg=colour239,fg=colour246] %a %d-%m-%Y \
%H:%M #[bg=colour64,fg=colour237 ,bold]"
set-window-option -g window-status-current-format \
"#[bg=colour214,fg=colour237,bold] #I #W#{?window_zoomed_flag,*Z,} "
set-window-option -g window-status-format \
"#[bg=colour237,fg=colour223] #I #[bg=colour237,fg=colour223] #W "