-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
66 lines (52 loc) · 1.94 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
62
63
64
65
66
set -g prefix C-x
bind C-x send-prefix
unbind C-b
set -gw mode-keys emacs
set -gw xterm-keys on
set -g set-titles on
set -g set-titles-string "#T / #{s/#\[.*\]//:window_name}"
set -g status-style bg=blue,fg=white
set -g status-left "#S"
set -g status-left-style bg=black
set -g status-right "#h"
set -g status-right-style bg=black
set -gw default-terminal "screen-256color"
set -gw window-status-current-format '==>#W#[bg=red,fg=white]<=='
set -gw window-status-current-style bg=red,bold
set -gw window-status-format ' #W'
set -gw automatic-rename on
set -gw history-limit 4000
set -gw base-index 1
bind 3 split-window -h
bind 2 split-window -v
bind -n C-PageUp previous-window
bind -n C-PageDown next-window
bind -n C-Up select-pane -U
bind -n C-Down select-pane -D
unbind-key -n C-Left
unbind-key -n C-Right
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
unbind-key C-z
bind -n C-q copy-mode
# Does not work: bind -n C-IC paste-buffer
bind -n C-DC paste-buffer
# bind C-v paste-buffer \; run-shell -b "tmux save-buffer - | xclip -f | xclip -sel clipboard >/dev/null"
bind C-w choose-buffer "run \"tmux save-buffer -b %% - | xclip -f | xclip -sel clipboard >/dev/null\""
bind C-v run-shell -b "tmux save-buffer - | xclip -f | xclip -sel clipboard >/dev/null"
bind R source-file ~/.tmux.conf \; display-message "source-file done"
bind-key -n -T copy-mode C-Left send-keys -X previous-word
bind-key -n -T copy-mode C-Right send-keys -X next-word
bind-key < move-window -t 0 \; move-window -r
bind-key > move-window -t 50 \; move-window -r
set -g status-position top
set -g renumber-windows on
bind-key C-p pipe-pane -o 'cat >>~/output.#I-#P.log' \; display "Toggled logging to ~/output.#I-#P.log"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-logging'
set -g @plugin 'jbnicolai/tmux-fpp'
run '~/.tmux/plugins/tpm/tpm'