-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
71 lines (53 loc) · 1.63 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
# tmux version: 3.0a
# runtime reload
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# copy mode to escape key
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind -Tcopy-mode-vi v send -X begin-selection
bind -Tcopy-mode-vi y send -X copy-selectionn
# move tmux copy buffer into x clipboard
# может завесить иксы
#bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
#bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
set -sg escape-time 1
set -g set-titles on
set -g set-titles-string "tmux.#I.#W"
set -g base-index 1
set -g history-limit 50000
set -g bell-action any
setw -g monitor-activity on
set -g visual-activity on
bind-key k confirm kill-window
bind-key K confirm kill-server
bind | split-window -h
bind - split-window -v
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
#export variables
set-option -ga update-environment ' XAUTHORITY'
# Status bar
set -g display-time 2000
# Colors
# Status bar colors
set -g status-style fg=red,bg=default,default
# Window's caption colors
set-window-option -g window-status-style fg=cyan,bg=default,dim
# Active window colors
set-window-option -g window-status-current-style fg=white,bg=default,bright
# Command line colors
set -g message-style fg=white,bg=black,bright
# Hot-keys
unbind C-b
set -g prefix C-a
bind-key C-a send-prefix
# Vi navigation
set -g status-keys vi
setw -g mode-keys vi
bind-key b set-option status # turn on/off status bar
bind A command-prompt "rename-window '%%'"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'