-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
89 lines (67 loc) · 2.05 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
# Prefix
unbind C-b
set -g prefix C-s
# Config reload
bind r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
# General
set -g history-limit 1000000
set -g visual-activity off
set -sg escape-time 0
# Modes
set -g status-keys "emacs"
setw -g mode-keys vi
# Windows
set -g base-index 1
set -g renumber-windows on
setw -g aggressive-resize on
bind -n M-Tab last-window
bind -n M-1 select-window -t :=1
bind -n M-2 select-window -t :=2
bind -n M-3 select-window -t :=3
bind -n M-4 select-window -t :=4
bind -n M-5 select-window -t :=5
bind -n M-6 select-window -t :=6
bind -n M-7 select-window -t :=7
bind -n M-8 select-window -t :=8
bind -n M-9 select-window -t :=9
bind -n M-0 select-window -t :=10
# Panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
bind '-' split-window -v -c "#{pane_current_path}"
bind '\' split-window -h -c "#{pane_current_path}"
unbind '"'
unbind %
bind b break-pane -d
setw -g pane-base-index 1
# Colors
set -g default-terminal "tmux-256color"
# Status bar
set -g status-position top
set -g status-left-length 0
set -g status-right ""
set -g status-right-length 40
set -g status-right "[#{?session_grouped,#{session_group},#S}]"
set -g status-justify left
set -g status-style "bg=black,fg=white"
setw -g window-status-style "bg=black,fg=white"
setw -g window-status-current-style "bg=white,fg=black"
setw -g window-status-format " #I: #W "
setw -g window-status-current-format " #I: #W "
setw -g window-status-separator ""
setw -g mode-style "bg=white,fg=black"
setw -g pane-border-style "bg=black,fg=brightblack"
setw -g pane-active-border-style "bg=black,fg=white"
# Copying and pasting
unbind C-p
bind C-p run "xclip -o -sel clip | tmux load-buffer - ; tmux paste-buffer"
unbind C-y
bind C-y copy-mode
unbind -T copy-mode-vi v
bind -T copy-mode-vi v send-keys -X begin-selection
unbind -T copy-mode-vi y
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -sel clip > /dev/null"
# Manual
bind m command-prompt -p "Show manual:" "split-window -h man %%"