-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
46 lines (32 loc) · 1.26 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
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi C-v send -X rectangle-toggle
bind -T copy-mode-vi y send -X copy-pipe "xsel -i -b"
bind ] run "xsel -o -b | tmux load-buffer - ; tmux paste-buffer"
set -s escape-time 0
unbind C-b
set -g prefix M-x
bind x send-prefix
bind M-x send-prefix
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
bind | split-window -h
bind _ split-window -v
bind M-c new-window
bind u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n urlview 'bash -ic "urlview < /tmp/tmux-buffer"'
bind b set status
set -g status-bg white
set -g mouse on
set -g update-environment 'TERM'
if "[ ${TERM} = xterm ]" 'set -g default-terminal tmux'
if "[ ${TERM} = xterm-256color -o ${TERM} = rxvt-unicode-256color -o ${TERM} = st-256color -o ${TERM} = alacritty ]" 'set -g default-terminal tmux-256color'
set -g default-command "$SHELL"
set -g set-titles on
set -g set-titles-string '#H: #W'
set -g automatic-rename on
source ~/.tmux-theme.conf
set -g renumber-windows on
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY GPG_AGENT_INFO DBUS_SESSION_BUS_ADDRESS"
set -g history-limit 10000