This repository has been archived by the owner on Feb 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
124 lines (91 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#
# General
#
# Refresh Status Bar Interval
set -g status-interval 60
# Monitor and Alert Activity
setw -g monitor-activity on
set -g visual-activity off
set -g history-limit 5000
# Agressive Resizing
setw -g aggressive-resize on
# Vi Mode
setw -g mode-keys vi
# Enable focus events
set -g focus-events on
#
# Bindings
#
# Default global TMUX prefix remapping to ctrl+a
unbind C-b
set -g prefix C-a
# Make TMUX more responsive
set -sg escape-time 1
# Window indexes start at 1 not 0
set -g base-index 1
# Pane indexes start at 1 not 0
setw -g pane-base-index 1
# Config Reload
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
# Send prefix bind to other applications
bind C-a send-prefix
# Custom split pane binds
bind | split-window -h # Horizontal
bind - split-window -v # Vertical
# Vim style window movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Synchronise Panes
bind S setw synchronize-panes
# Window movment (Cycle Left / Right)
bind -r C-h select-window -t :-
bind -r C-l select-window -t :-
# Pane resizeing
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Vim Style Copy / Paste
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
# Make xterm keys work (ctrl+arrow etc etc)
set-window-option -g xterm-keys on
# Increase display pane number time (10 seconds)
set -g display-panes-time 10000
# pane zoom
bind M resize-pane -Z
# vim visual style visual mode
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
# Pane titles
# Set border pane border status to the bottom
# setw pane-border-status bottom
# toggle pane title visibility
bind T run 'zsh -c "arr=( off top ) && tmux setw pane-border-status \${arr[\$(( \${arr[(I)#{pane-border-status}]} % 2 + 1 ))]}"'
# rename pane
bind t command-prompt -p "(rename-pane)" -I "#T" "select-pane -T '%%'"
#
# Colours
#
# 256 Colours
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
#
# Plugin Manager
#
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Battery level indicator
set -g @plugin 'tmux-plugins/tmux-battery'
# One dark theme
set -g @plugin 'odedlaz/tmux-onedark-theme'
# Cross Platform Yank Support
set -g @plugin 'tmux-plugins/tmux-yank'
# Resurrect tmux session
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'