-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
100 lines (74 loc) · 2.68 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
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
# vim:syntax=tmux
###I stole this from Markus's tmux conf
# Change default prefix key
set -g prefix f12
#set -g prefix C-a
unbind C-b
#unbind a
#bind a send-prefix
# Set the default terminal to a color one
set -g default-terminal "xterm-256color"
# I like vi
#set -g status-keys vi
setw -g mode-keys vi
# Scrollback history - you like it big?
set -g history-limit 10000
# I ssh all the time...
bind C-b command-prompt "new-window -n %% 'ssh %1'"
# Nicer command for new windows...
bind C-n command-prompt -p name,command "new-window -n %% '%%'"
#Screen style last window (C-a C-a)
unbind a
bind a last-window
# Set window width to 81 characters
bind W set-window-option force-width 81
bind E command-prompt -p "Command:" \
"run \"tmux list-panes -s -F '##{session_name}:##{window_index}.##{pane_index}' \
| xargs -I PANE tmux send-keys -t PANE '%1' Enter\""
# Switch panes without allowing multiple presses of the action key
#bind-key Up select-pane -U
#bind-key Down select-pane -D
#bind-key Left select-pane -L
#bind-key Right select-pane -R
####from http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
display-message "source-file done"
# switch panes using Alt-arrow without prefix
bind -n M-S-Left select-pane -L
bind -n S-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind h select-pane -L
bind l select-pane -R
bind k select-pane -U
bind j select-pane -D
bind-key H swap-pane -s {left-of}
bind-key J swap-pane -s {down-of}
bind-key K swap-pane -s {up-of}
bind-key L swap-pane -s {right-of}
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
#Auto Renumber Windows
bind R movew -r
#https://github.com/neovim/neovim/wiki/FAQ
set-option -sg escape-time 10
set-option -g focus-events on
set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack 'powerline/block/blue'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-sidebar'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @copycat_search_D '[[:alnum:]]*-([[:digit:]]+).*'
#set -g default-terminal "${TERM}"
#set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
#set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
run '~/.tmux/plugins/tpm/tpm'