-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
51 lines (42 loc) · 1.71 KB
/
Copy path.tmux.conf
File metadata and controls
51 lines (42 loc) · 1.71 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
# ─── Core ─────────────────────────────────────────────────────────────────
set -g default-terminal "tmux-256color"
set -as terminal-features ",*-256color:RGB"
set -sg escape-time 1
set -g history-limit 100000
set -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
set -g mouse on
setw -g mode-keys vi
setw -g monitor-activity on
set -g visual-activity on
# pane titles
set -g pane-border-status top
set -g pane-border-format " #{pane_index}: #{pane_title} "
# ─── Prefix ───────────────────────────────────────────────────────────────
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# ─── Bindings ─────────────────────────────────────────────────────────────
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
# splits
bind | split-window -h
bind - split-window -v
# vim-style pane navigation
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
# window navigation
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# pane resize
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
# macOS clipboard
bind C-c run "tmux save-buffer - | pbcopy"
bind C-v run "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer"
# rename pane title
bind T command-prompt -p "Pane title:" "select-pane -T '%%'"