-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
62 lines (47 loc) · 1.39 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
# List of plugins.
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g default-terminal "screen-256color"
# Save and restore sessions.
set -g @continuum-restore 'on'
set -g @continuum-save-interval '0'
# Change prefix.
unbind C-b
set -g prefix C-a
# Split window.
bind | split-window -h
bind \\ split-window -v
# Switch panes.
bind -n C-Left select-pane -L
bind -n C-Right select-pane -R
bind -n C-Up select-pane -U
bind -n C-Down select-pane -D
# Move panes.
bind -n C-S-Left swap-pane -U
bind -n C-S-Right swap-pane -D
bind -n C-S-Up swap-pane -U
bind -n C-S-Down swap-pane -D
# Enable mouse support.
set -g mouse on
# Scroll history.
set -g history-limit 100000
# Start index of window/pane with 1.
set -g base-index 1
setw -g pane-base-index 1
# No delay for escape key press.
set -sg escape-time 0
# Change the color of inactive windows.
set -g window-style 'bg=#171717'
set -g window-active-style 'bg=#000000'
# Change pane border color.
set -g pane-border-style 'fg=#585858 bg=#171717'
set -g pane-active-border-style 'fg=#a5a5a5 bg=#171717'
# Move the status bar to the top.
set-option -g status-position top
# Change the style of the status bar.
run-shell "powerline-daemon -q"
source "$POWERLINE_TMUX_CONFIG"
# Initialize TMUX plugin manager.
run -b '~/.tmux/plugins/tpm/tpm'