-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
61 lines (55 loc) · 2.18 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
51
52
53
54
55
56
57
58
59
60
61
set-option -g default-shell "/bin/zsh"
set-option -g default-command "exec /bin/zsh"
set-option -g default-terminal "tmux-256color"
set -as terminal-features ",$TERM*:RGB"
set-option -g history-limit 100000
set-option -g prefix C-a
set-option -g focus-events on
set-option -g history-file ~/.local/share/tmux_history
set-option -g xterm-keys on
unbind C-b
bind-key C-a send-prefix
set -sg escape-time 1
unbind c
bind-key r source-file ~/.tmux.conf \; display "Reloaded!"
bind-key k clear-history \; send-keys C-l
set-option -g mode-keys vi
bind-key -T copy-mode-vi "v" send -X begin-selection
bind-key -T copy-mode-vi "V" send -X select-line
bind-key -T copy-mode-vi "r" send -X rectangle-toggle
bind-key -T copy-mode-vi "Y" send-keys -X copy-pipe-and-cancel "tmux paste-buffer"
bind-key -T copy-mode-vi "y" send-keys -X copy-selection
set-option -g -q mouse on
bind-key -n WheelUpPane if-shell -F "#{alternate_on}" "send-keys -M" "select-pane -t= \; copy-mode -eu"
bind-key -n WheelDownPane select-pane -t= \; send-keys -M
bind-key / copy-mode \; command-prompt -p "(search up)" "send -X search-backward \"%%%\""
bind-key h select-pane -U
bind-key j select-pane -L
bind-key k select-pane -R
bind-key l select-pane -D
bind-key -n M-h select-pane -L
bind-key -n M-l select-pane -R
bind-key | split-window -h -c "#{pane_current_path}"
bind-key - split-window -v -c "#{pane_current_path}"
unbind-key '"'
unbind-key %
bind-key -n M-q confirm-before -p "kill-pane #P? (y/n)" kill-pane
unbind-key -T root M-MouseDown3Pane
unbind-key -T root MouseDown3Pane
bind-key -n C-u if-shell -F "#{alternate_on}" "send-keys C-u" "copy-mode -eu"
set -g exit-empty off
set-option -g status off
set-option -g set-titles on
set-option -g automatic-rename on
set-option -g allow-rename on
set-option -g set-titles-string "[#S] #{pane_title}"
# set-option -g status-position top
# set-option -g status-interval 2
# set-option -g status-justify left
# bind-key c command-prompt -p "window name:" "new-window -c '#{pane_current_path}' -n '%%'"
# bind-key -n M-j previous-window
# bind-key -n M-k next-window
# bind-key -n M-J swap-window -d -t -1
# bind-key -n M-K swap-window -d -t +1
# set-option -g renumber-windows on
# bind-key C-s last-window