-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
76 lines (61 loc) · 1.86 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
set -g default-terminal 'tmux-256color'
set-option -sa terminal-features ',xterm-256color:RGB'
set -g @plugin 'https://github.com/christoomey/vim-tmux-navigator'
# rebind prefix
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
# fix escape time
set -sg escape-time 0
# split window & open in current path
unbind %
bind | split-window -h -c "#{pane_current_path}"
unbind '"'
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# source tmux conf
unbind r
bind r source-file ~/.tmux.conf
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# vim-like pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# vim-like pane resizing
bind -r C-k resize-pane -U 5
bind -r C-j resize-pane -D 5
bind -r C-h resize-pane -L 5
bind -r C-l resize-pane -R 5
unbind %
unbind Up
unbind Down
unbind Left
unbind Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right
# maximise pane
bind -r m resize-pane -Z
# enable mouse
set -g mouse on
# Use a monochrome statusline, with host and session names on the right.
set-option -g status-position top
set -g status-bg black
set -g status-fg white
set -g status-left ''
set -g status-right ' #h: #S '
# Use normal and bright monochrome colors to show a tab line on the left.
set -g status-justify left
set-window-option -g window-status-separator ''
set-window-option -g window-status-format '#[bg=black,fg=white] #I #W '
set-window-option -g window-status-current-format '#[bg=brightblack,fg=brightwhite] #I #W '
# Switching panes should change the foreground color but not border colors.
set -g window-style 'bg=default,fg=white'
set -g window-active-style 'bg=default,fg=brightwhite'
set -g pane-border-style 'bg=default,fg=black'
set -g pane-active-border-style 'bg=default,fg=black'
run '~/.tmux/plugins/tpm/tpm'