-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
48 lines (40 loc) · 1.09 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
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
# Remap prefix to ctrl-space
set -g prefix C-Space
unbind C-b
bind C-Space send-prefix
# Vim keybindings
setw -g mode-keys vi
set -g status-keys vi
# Splitting
unbind |
unbind -
unbind =
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind = select-layout tiled
unbind '"'
unbind %
bind c new-window -c "#{pane_current_path}"
# Switch panes
bind l select-pane -L
bind h select-pane -R
bind k select-pane -U
bind j select-pane -D
# Reload .tmux.conf
unbind r
bind r source-file ~/.tmux.conf
# Resizing panes
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -L 5
bind H resize-pane -R 5
# Enable mouse mode
set -g mouse on
# Copy-paste
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"