-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
150 lines (127 loc) · 3.14 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# $Id: screen-keys.conf,v 1.6 2010/02/02 21:34:16 nicm Exp $
#
# By Nicholas Marriott. Public domain.
#
# This configuration file binds many of the common GNU screen key bindings to
# appropriate tmux key bindings. Note that for some key bindings there is no
# tmux analogue and also that this set omits binding some commands available in
# tmux but not in screen.
#
# Note this is only a selection of key bindings and they are in addition to the
# normal tmux key bindings. This is intended as an example not as to be used
# as-is.
# Set the prefix to ^A.
unbind C-b
set -g prefix ^A
bind a send-prefix
# Bind appropriate commands similar to screen.
# lockscreen ^X x
unbind ^L
bind ^L lock-server
unbind l
bind l lock-server
# screen ^C c
unbind ^C
bind ^C new-window
unbind c
bind c new-window
# detach ^D d
unbind ^D
bind ^D detach
# displays *
unbind *
bind * list-clients
# next ^@ ^N sp n
unbind ^@
bind ^@ next-window
unbind ^N
bind ^N next-window
# unbind " "
# bind " " next-window
# unbind n
# bind n next-window
# title A
unbind A
bind A command-prompt "rename-window %%"
# other ^A
unbind ^A
bind ^A last-window
# prev ^H ^P p ^?
unbind ^H
bind ^H previous-window
unbind ^P
bind ^P previous-window
unbind p
bind p previous-window
unbind BSpace
bind BSpace previous-window
# windows ^W w
unbind ^W
bind ^W choose-window #list-windows
unbind w
bind w choose-window
# quit \
#unbind \
#bind \ confirm-before "kill-server"
# kill K k
unbind K
bind K confirm-before "kill-window"
unbind k
bind k confirm-before "kill-window"
# redisplay ^L l
unbind ^R
bind ^R refresh-client
unbind r
bind r refresh-client
# split -v |
unbind |
bind | split-window -h
# :kB: focus up
unbind Tab
#bind Tab down-pane
unbind BTab
#bind BTab up-pane
# " windowlist -b
#unbind 'l'
#bind 'l' choose-window
# status bar
set-option -g status-utf8 on
set-option -g status-justify left
set-option -g status-interval 5
set-option -g status-left-length 80
# set-option -g status-left '#T |'
set-option -g status-left '#[fg=red]#W|s#S:w#I.p#P#[default]|'
set-option -g status-right '| #S | #(cut -f1-3 "-d " /proc/loadavg) | %m-%d %R'
set-option -g status-bg white
set-option -g status-fg blue
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg blue
# window title
set-option -g set-titles on
set-option -g set-titles-string '#S:#I.#P #W' # window number,program name,active (or not)
set-window-option -g automatic-rename on # auto name
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g mouse-resize-pane on
# navigate panes with hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind < resize-pane -L 1
bind > resize-pane -R 1
bind - resize-pane -D 1
bind + resize-pane -U 1
# basic settings
set-option -g status-keys vi
set-option -g visual-activity on
set-option -g visual-bell on
set-window-option -g mode-keys vi
set-window-option -g utf8 on
set-window-option -g mode-mouse on
set-window-option -g mouse-utf8 on
set-window-option -g monitor-activity off
set -g default-terminal "screen-256color"
set-option -g base-index 1
#set-option -gw xterm-keys on
#set -g default-terminal "xterm"