-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
68 lines (56 loc) · 1.78 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
##
# .tmux.conf
#
# tmux Configuration
##
set -s escape-time 0
set -g aggressive-resize on
set -g history-limit 8192
unbind C-b
set -g prefix C-s
bind-key s send-prefix
set -g default-terminal "rxvt-256color"
### ---------------------- Pane Navigation ---------------------- ###
bind | split-window -h
bind _ split-window -v
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h resize-pane -L
bind -r C-j resize-pane -D
bind -r C-k resize-pane -U
bind -r C-l resize-pane -R
### ---------------------- Status-Bar ---------------------- ###
set -g base-index 1
set -g status-left ''
#
# Tmux status line for light color schemes
#
#set -g status-bg default
#set -g status-fg black
#set -g status-right '#[fg=green]#S'
#set-window-option -g window-status-format '#[fg=white]#I:#W#F'
#set-window-option -g window-status-current-format '#[fg=blue]#I:#W'
#
# Tmux status line for dark color schemes
#
#set -g status-bg default
#set -g status-fg black
#set -g status-right '#[fg=green]#S'
#set-window-option -g window-status-format '#[fg=black]#I:#W#F'
#set-window-option -g window-status-current-format '#[fg=blue]#I:#W'
# Alerted window in status bar. Windows which have an alert (bell, activity or content).
#set-option -u message-fg
#set-option -u message-bg
### ---------------------- Use vi mode ---------------------- ###
set-option -g status-keys vi
set-window-option -g mode-keys vi
set -g display-time 3000
### ---------------------- Copy & Paste ---------------------- ###
bind-key [ copy-mode
bind-key ] paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'x' copy-selection
bind-key 'p' run-shell "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer"
bind-key 'y' send-keys x\; run-shell "tmux show-buffer | pbcopy"\; display-message "copied"