-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_tmux.conf
More file actions
65 lines (49 loc) · 1.29 KB
/
_tmux.conf
File metadata and controls
65 lines (49 loc) · 1.29 KB
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
# Last modified: 2012-03-05
set -g prefix C-a
unbind %
bind r source-file ~/.tmux.conf
bind \ split-window -h
bind - split-window -v
# Use C-a a to send commands to nested sessions
bind a send-prefix
bind k select-pane -U
bind j select-pane -D
bind h select-pane -L
bind l select-pane -R
# Since we stole 'l' for pane navigation
bind L last-window
# Set mouse mode by default
set-option -g mouse on
# Toggle mouse on with C-a m
bind m \
setw -g mouse on \;\
display 'Mouse: ON'
# Toggle mouse off with C-a M
bind M \
setw -g mouse off \;\
display 'Mouse: OFF'
set -g set-titles on
set -g set-titles-string "#H : #S.#I.#P #W #T"
set -g base-index 1
setw -g aggressive-resize on
set -g status-utf8 on
set -g status-bg black
set -g status-fg green
set -g status-left-length 30
set -g status-left ' #[fg=cyan,bright]#H#[fg=green] : #[fg=white]#S#[fg=green] | #[default]'
set -g status-right '| #[fg=yellow]%Y-%m-%d %H:%M '
set -g status-justify centre
set -sg escape-time 50
set -g default-terminal screen-256color
# Move current pane to its own window
unbind +
bind + \
new-window -d -n tmux-zoom \;\
swap-pane -s tmux-zoom.0 \;\
select-window -t tmux-zoom
# Put current pane back in its previous window
unbind _
bind _ \
last-window \;\
swap-pane -s tmux-zoom.0 \;\
kill-window -t tmux-zoom