-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
50 lines (38 loc) · 1.4 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
# Change modifier to <Ctrl-A>.
unbind C-b
set -g prefix C-a
# Allow other apps to receive the modifier too.
bind C-a send-prefix
# Bind a .tmux.conf file reloader hotkey.
bind r source-file ~/.tmux.conf \; display "Shmowzow!"
# Remap pane splitting.
bind \ split-window -h -c "#{pane_current_path}"
bind - split-window -c "#{pane_current_path}"
# Return to a normal layout.
bind | run "tmux select-layout even-horizontal > /dev/null"
# Move between panes with god-tier movement keys.
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes with capital god-tier movement keys.
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
# Toggle a pane's fullscreen mode.
unbind f
bind -r f resize-pane -Z
# Woo, pretty colors.
set -g default-terminal "screen-256color"
# Copy-paste integration.
set-option -g default-command "reattach-to-user-namespace -l zsh"
# Enable buffer navigation with vi keys. <Ctrl-A>[ to enter Copy mode.
setw -g mode-keys vi
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update the default binding of Enter to user copy-pipe.
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# Bind ] to use pbpaste.
bind ] run "reattach-to-user-namespace pbpaste | tmux load buffer - && tmux paste-buffer"