-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.remote.conf
More file actions
74 lines (57 loc) · 2.27 KB
/
.tmux.remote.conf
File metadata and controls
74 lines (57 loc) · 2.27 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
65
66
67
68
69
70
71
72
73
# Change prefix key C-b to C-x
set-option -g prefix C-r
bind-key C-r send-prefix
unbind-key C-b
# Use 256-color
set-option -g default-terminal "screen-256color"
set-option -g terminal-overrides "xterm:colors=256"
set -g default-command "tmux-login-shell"
# status bar
set-option -g status-position top
set-option -g status-interval 1
set-option -g status-justify centre
set-window-option -g status-fg black
set-window-option -g status-bg colour214
set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-bg colour214
set-option -g status-left-length 60
set-option -g status-right-length 60
set-option -g status-left " #[bg=colour202,fg=black] Host:#h #[bg=colour208,fg=black] Session:#S #[bg=colour172,fg=black] Window:#W(#P) #[bg=default,fg=default]"
set-option -g status-right "#(tmux-network)#[bg=colour202,fg=black] %Y-%m-%d (%a) %H:%M:%S #[bg=default,fg=default]"
set-option -g pane-border-fg white
set-option -g pane-border-bg black
set-option -g pane-active-border-fg colour202
set-option -g pane-active-border-bg black
# mouse settings
set-option -g mouse on
# reduce delay of key stroke
set-option -sg escape-time 0
set-option -g history-limit 10000
set-window-option -g mode-keys vi
if-shell "which putclip" '\
bind-key -T copy-mode-vi v send-keys -X begin-selection; \
bind-key -T copy-mode-vi y send-keys -X copy-pipe "cat > /dev/clipboard"; \
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe "cat > /dev/clipboard"; \
'
if-shell "which reattach-to-user-namespace" '\
bind-key -T copy-mode-vi v send-keys -X begin-selection; \
bind-key -T copy-mode-vi y send-keys -X copy-pipe "reattach-to-user-namespace pbcopy"; \
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe "reattach-to-user-namespace pbcopy"; \
'
# split windows
bind-key / split-window -h -c "#{pane_current_path}"
bind-key - split-window -v -c "#{pane_current_path}"
# move panes
bind-key C-h select-pane -L
bind-key C-j select-pane -D
bind-key C-k select-pane -U
bind-key C-l select-pane -R
# move windows
bind-key C-t new-window -c "#{pane_current_path}"
bind-key C-n next-window
bind-key C-p previous-window
# move sessions
bind-key C-s new-session
bind-key C-x choose-session
# reload .tmux.conf
bind-key r source-file ~/.tmux.conf \; display "Reloaded!"