-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtmux.conf
134 lines (95 loc) · 4.11 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
# ------------------------------------------------------------------------------
# FILE: .tmux.conf
# DESCRIPTION: tmux configuration file.
# AUTHORS: Sorin Ionescu <[email protected]>,
# Colin Hebert <[email protected]>
# VERSION: 1.0.2
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# General Options
# ------------------------------------------------------------------------------
# Inform programs of 256 colour support.
set -g default-terminal "screen-256color"
# List activity on all windows.
set-option -g bell-action any
# Set window notifications.
set-window-option -g monitor-activity on
set-option -g visual-activity on
# Scroll back buffer n lines.
set-option -g history-limit 10000
# Start window indexing at one instead of zero.
set-option -g base-index 1
# Resize the current shell to the maximum size
set-window-option -g aggressive-resize on
# ------------------------------------------------------------------------------
# General Key Bindings
# ------------------------------------------------------------------------------
# Set key map for copy and choice modes.
#set-window-option -g mode-keys vi
# Move the Mac OS X clipboard into tmux paste buffer.
#bind-key 'P' run-shell "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer"
# Move tmux copy buffer into the Mac OS X clipboard.
#bind-key 'Y' run-shell 'tmux show-buffer | pbcopy'
# Confirm before killing pane.
#bind-key 'k' confirm-before kill-pane
# Toggle status bar.
#bind-key 'b' set-option status
# Meta + Left/Right cycles through windows.
bind-key -n 'M-Tab' next-window
bind-key -n 'M-BTab' previous-window
# ------------------------------------------------------------------------------
# Status Bar
# ------------------------------------------------------------------------------
# Use key map for the status bar.
#set-option -g status-keys vi
# The position of the window list (left, centre, or right).
set-option -g status-justify centre
# Update the status bar every n seconds.
#set-option -g status-interval 5
# The maximum length of the left component of the status bar.
#set-option -g status-left-length 20
# The maximum length of the right component of the status bar.
#set-option -g status-right-length 20
# Status bar format.
set-option -g status-left ''
set-option -g status-right ''
#set-option -g status-right '#[fg=green] ###S#[default]'
# On-screen time for display-panes in ms.
#set-option -g display-time 2000
# Default status bar colours.
set-option -g status-style "fg=white,bg=black,bright"
# Default window title colours.
set-window-option -g window-status-style "fg=white,bg=default,dim"
# Active window title colours.
set-window-option -g window-status-current-style "fg=green,bg=default,bright"
# Command/message line colours.
set-option -g message-style "fg=white,bg=black,bright"
# ------------------------------------------------------------------------------
# Panes
# ------------------------------------------------------------------------------
set-option -g display-panes-time 2000
# Pane borders.
#set-option -g pane-border-fg white
#set-option -g pane-active-border-fg blue
# Splitting panes.
#bind-key '-' split-window -v
#bind-key '|' split-window -h
# Moving between 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
# Resizing panes.
#bind-key -n 'S-Down' resize-pane -D 1
#bind-key -n 'S-Up' resize-pane -U 1
#bind-key -n 'S-Left' resize-pane -L 1
#bind-key -n 'S-Right' resize-pane -R 1
# ------------------------------------------------------------------------------
# Clock
# ------------------------------------------------------------------------------
#set-window-option -g clock-mode-colour cyan
#set-window-option -g clock-mode-style 24
# ------------------------------------------------------------------------------
# Resources
# ------------------------------------------------------------------------------
#bind-key r source-file ~/.tmux.conf; display-message "tmux.conf is reloaded"