forked from DarkPark/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
63 lines (47 loc) · 1.94 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
# http://man.openbsd.org/OpenBSD-current/man1/tmux.1
# Change your prefix from C-b to C-a.
unbind-key C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Enable UTF-8 support.
set-option -g status-utf8 on
set -g utf8
setw -g utf8 on
# c-a c-a for the last active window
bind-key C-a last-window
# Set the base index from which an unused index should be searched when a new window is created.
# The default is zero.
set -g base-index 1
# Like base-index, but set the starting index for pane numbers.
set -g pane-base-index 1
# faster command sequences
set -s escape-time 0
# Set the amount of time for which status line messages and other on-screen indicators are displayed.
# If set to 0, messages and indicators are displayed until a key is pressed. time is in milliseconds.
set -g display-time 10000
# aggressive resize
setw -g aggressive-resize on
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g status-bg white
set -g status-right-length 60
set -g status-right "#[fg=blue]#(cat /proc/loadavg) [#h@%H:%M]"
set -g status-left ''
# Set the default terminal for new windows created in this session - the default value of the TERM environment variable.
# For tmux to work correctly, this must be set to ‘screen’, ‘tmux’ or a derivative of them.
set -g default-terminal "xterm-256color"
# Set the maximum number of lines held in window history. This setting applies only to new windows.
# Existing window histories are not resized and retain the limit at the point they were created.
set -g history-limit 10000
# If on, tmux captures the mouse and allows mouse events to be bound as key bindings.
# See the MOUSE SUPPORT section for details.
set -g mouse off
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file with C-a S-r
bind R source-file ~/.tmux.conf\; display-message "config reloaded"
# to get shift+arrows and ctrl+arrows working
setw -g xterm-keys on