-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
61 lines (57 loc) · 1.45 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
set -g update-environment -r
#set main-pane-width 95
#set main-pane-height 25
set-window-option -g mode-keys vi
setw -g monitor-activity on
set -g visual-activity on
set -g status-justify centre
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'
set-window-option -g window-status-current-bg red
set -g status-right-length 70
set -g status-right '#[fg=yellow]%d %b %Y %H:%M #[fg=magenta]#(uptime | cut -d "," -f 2-)'
set-option -g prefix C-a
unbind C-b
bind-key C-a last-window
#bind-key C-a send-prefix
unbind %
bind | split-window -h
bind - split-window -v
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
set -g mouse-utf8 off
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -g xterm-keys on
# select panes
unbind-key j
bind-key j select-pane -D
unbind-key k
bind-key k select-pane -U
unbind-key h
bind-key h select-pane -L
unbind-key l
bind-key l select-pane -R
# resize panes
unbind-key J
bind-key -r J resize-pane -D 5
unbind-key K
bind-key -r K resize-pane -U 5
unbind-key H
bind-key -r H resize-pane -L 5
unbind-key L
bind-key -r L resize-pane -R 5
unbind Enter
bind Enter resize-pane -Z
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-selection
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
unbind P
bind P pipe-pane -o "cat >>~/#W.log" \; display "Toggled logging to ~/#W.log"