-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
executable file
·98 lines (77 loc) · 2.49 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
94
95
96
97
98
# Change prefix
set -g prefix C-a
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
# Fix for neovim crashing tmux: https://github.com/tmux/tmux/issues/1264
set -as terminal-overrides ',st*:Ss@'
# Rename your terminals
set -g set-titles on
set -g set-titles-string '#(whoami)@#h - #{pane_current_command}'
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# Remap window navigation to vim
unbind-key j
bind-key j select-pane -D
unbind-key k
bind-key k select-pane -U
unbind-key h
bind-key h select-pane -L
unbind-key l
bind-key l select-pane -R
bind H resize-pane -L 10
bind L resize-pane -R 10
bind J resize-pane -D 10
bind K resize-pane -U 10
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-option -g repeat-time 0
# enable tmux-continuum
set -g @continuum-restore 'on'
# vim session support
set -g @resurrect-strategy-vim 'session'
# set mouse mode
set -g mouse on
# set mouse selection to copy text to clipboard
set -g @yank_selection_mouse 'clipboard'
# loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
# The modes {
setw -g clock-mode-colour colour1
setw -g mode-style fg=default,bg=default,bold
# }
# The panes {
set -g pane-border-style "bg=colour0,fg=colour6"
set -g pane-active-border-style "bg=colour0,fg=colour9"
# }
# The statusbar {
set -g status-justify left
set -g status-interval 2
set -g status-position bottom
set -g status-bg default
set -g status-fg colour14
set -g status-left ''
set -g status-right '#[fg=colour14,bold] @#H '
setw -g window-status-current-style bg=colour0,bold
setw -g window-status-current-format ' #I:#[fg=colour7]#W#[fg=colour2]#F '
setw -g window-status-style fg=colour7,bg=colour0,none
setw -g window-status-format ' #I#[fg=colour7]:#[fg=colour7]#W#[fg=colour2]#F '
# }
# The messages {
set -g message-style bold,fg=default,bg=default
# }
set -g @continuum-save-interval '5'
# List of plugins
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-yank \
tmux-plugins/tmux-pain-control \
tmux-plugins/tmux-copycat \
tmux-plugins/tmux-open \
'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'