-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
58 lines (46 loc) · 1.2 KB
/
.tmux.conf
File metadata and controls
58 lines (46 loc) · 1.2 KB
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
new-session
set -g default-terminal "screen-256color"
# no esc delay (vim)
set -sg escape-time 0
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-f
bind-key C-f send-prefix
# split panes using | and =
bind "|" split-window -h -c "#{pane_current_path}"
bind "=" split-window -v -c "#{pane_current_path}"
unbind '"'
unbind "%"
# reload config file
bind r source-file ~/.tmux.conf
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Enable mouse mode (tmux 2.1 and above)
# Toggle mouse on with m
bind m \
set -g mouse on \;\
display 'Mouse: ON'
# Toggle mouse off with M
bind M \
set -g mouse off \;\
display 'Mouse: OFF'
# Promote panes to windows to copy/paste
unbind +
bind + \
new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \;\
swap-pane -s tmux-zoom.0 \;\
select-window -t tmux-zoom
unbind -
bind - \
last-window \;\
swap-pane -s tmux-zoom.0 \;\
kill-window -t tmux-zoom
# don't rename windows automatically
set-option -g allow-rename off
######################
### DESIGN CHANGES ###
######################
set -g default-terminal "screen-256color"