This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdot_tmux.conf
114 lines (95 loc) · 3.8 KB
/
dot_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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# In order to properly support colors and italics, run tmux as:
# $ env TERM=screen-256color /usr/bin/tmux
set -g default-terminal "screen-256color"
# Command prefix key
set -g prefix C-t
bind-key t send-prefix
# Basics
bind-key : command-prompt
bind-key ? list-keys
bind-key R source-file ~/.tmux.conf \; display-message "loaded tmux.conf"
bind-key C-l clear-history \; display-message "cleared history"
# Windows.
bind-key C-c new-window
bind-key C-t last-window
bind-key C-n next-window
bind-key C-p previous-window
bind-key k confirm -p "kill-window? (y/n)" kill-window
bind-key , command-prompt -I "#W" "rename-window '%%'"
# Split-panes.
bind-key s split-window # horizontal split
bind-key C-s split-window #
bind-key v split-window -h # vertical split
bind-key C-v split-window -h #
bind-key h select-pane -t :.+
bind-key C-h select-pane -t :.+
bind-key < resize-pane -L 14
bind-key > resize-pane -R 14
bind-key - resize-pane -U 7
bind-key + resize-pane -D 7
bind-key x kill-pane
# Behavior
set -g mode-keys vi
set -g history-limit 50000
# Prevent escape key delay in tmux + vim.
set -s escape-time 0
# Appearance
set -g window-status-format "#[bg=colour18]#[fg=colour20]#F#I #W"
set -g window-status-current-format "#[bg=colour18]#[fg=colour12]#F#I #W"
set -g mode-style fg=brightred,bg=black
set -g message-style fg=green,bg=black
set -g message-command-style fg=yellow,bg=black
set -g status-style fg=white,bg=colour18
set -g status-justify centre
set -g status-left ""
set -g status-left-length 0
set -g status-right ""
set -g status-right-length 0
set -ga terminal-overrides ",xterm-256color:Tc"
# Copy and paste
set -g set-clipboard off
bind-key c copy-mode
bind-key p paste-buffer
# Copy mode bindings
bind-key -T copy-mode-vi C-c send -X cancel
bind-key -T copy-mode-vi q send -X cancel
bind-key -T copy-mode-vi Escape send -X cancel
bind-key -T copy-mode-vi d send -X cursor-left
bind-key -T copy-mode-vi h send -X cursor-down
bind-key -T copy-mode-vi t send -X cursor-up
bind-key -T copy-mode-vi n send -X cursor-right
bind-key -T copy-mode-vi Up send -X cursor-up
bind-key -T copy-mode-vi Down send -X cursor-down
bind-key -T copy-mode-vi Left send -X cursor-left
bind-key -T copy-mode-vi Right send -X cursor-right
bind-key -T copy-mode-vi C-Up send -X scroll-up
bind-key -T copy-mode-vi C-Down send -X scroll-down
bind-key -T copy-mode-vi C-b send -X page-up
bind-key -T copy-mode-vi C-f send -X page-down
bind-key -T copy-mode-vi PageUp send -X page-up
bind-key -T copy-mode-vi PageDown send -X page-down
bind-key -T copy-mode-vi Space send -X begin-selection
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi V send -X begin-selection
bind-key -T copy-mode-vi Enter send -X copy-selection
bind-key -T copy-mode-vi y send -X copy-selection
bind-key -T copy-mode-vi K send -X copy-end-of-line
bind-key -T copy-mode-vi / command-prompt -i -p "search down" "send -X search-forward-incremental \"%%%\""
bind-key -T copy-mode-vi ? command-prompt -i -p "search up" "send -X search-backward-incremental \"%%%\""
bind-key -T copy-mode-vi 0 send -X start-of-line
bind-key -T copy-mode-vi ^ send -X back-to-indentation
bind-key -T copy-mode-vi '$' send -X end-of-line
bind-key -T copy-mode-vi w send -X next-word
bind-key -T copy-mode-vi b send -X previous-word
bind-key -T copy-mode-vi e send -X next-word-end
bind-key -T copy-mode-vi W send -X next-space
bind-key -T copy-mode-vi E send -X next-space-end
bind-key -T copy-mode-vi B send -X previous-space
bind-key -T copy-mode-vi g send -X history-top
bind-key -T copy-mode-vi G send -X history-bottom
bind-key -T copy-mode-vi : send -X goto-line
bind-key -T copy-mode-vi D send -X top-line
bind-key -T copy-mode-vi M send -X middle-line
bind-key -T copy-mode-vi N send -X bottom-line
bind-key -T copy-mode-vi j send -X search-again
bind-key -T copy-mode-vi J send -X search-reverse