-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
46 lines (35 loc) · 1.37 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
# tmux config file
# Useful commands:
# C-a :kill-session = kill current session
# Add C-z as another prefix key.
set-option -g prefix2 'C-z'
# Send C-z on to shell if C-z C-z is pressed.
bind C-z send-prefix -2
# Emacs rules, vi drools.
set-window-option -g mode-keys emacs
set-window-option -g status-keys emacs
# Status bar.
set-option -g status-left ''
set-option -g status-bg black
set-option -g status-fg white
set-option -g -w window-status-current-style bg=red
set-option -g status-right ''
# Xterm title setting "tmux:session-name:window-index prompt".
set-option -g set-titles on
set-option -g set-titles-string "tmux:#S:#I #T"
# Window splitting.
unbind-key % # Remove default binding.
bind-key | split-window -h
bind-key - split-window -v
# Copy mode.
# https://www.rushiagr.com/blog/2016/06/16/everything-you-need-to-know-about-tmux-copy-pasting-ubuntu/
set-option -g history-limit 5000
bind-key C-y paste-buffer
# C-z Up switches panes by default, but I do not use panes.
bind-key Up copy-mode \; send-keys -X cursor-up
# Restore Ctrl-left and Ctrl-right functionality in shells.
# http://superuser.com/questions/360832/how-can-i-make-ctrlleft-right-keys-work-right-in-tmux
set-window-option -g xterm-keys on
# Use Alt-Z to toggle the active pane between zoomed (occupying the whole of
# the window) and unzoomed (its normal position in the layout)
bind-key -n M-z resize-pane -Z