-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommon.tmux.conf
45 lines (33 loc) · 1.34 KB
/
common.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
set -g default-terminal "xterm-256color"
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-t
bind-key C-t last-window
# Start numbering at 1
set -g base-index 1
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Allows us to use C-a a <command> to send commands to a TMUX session inside
# another TMUX session
bind-key a send-prefix
# Highlight active window in window bar
set-window-option -g window-status-current-style "bg=blue fg=white"
set-option -g status-bg blue
set-option -g status-fg black
# Better shortcuts for joining panes
bind-key h command-prompt -p "create horiz pane from:" "join-pane -h -s ':%%'"
bind-key v command-prompt -p "create vert pane from:" "join-pane -v -s ':%%'"
# Set clock to 12-hr mode
set-window-option -g clock-mode-style 12
# Set copy mode keybindings to vim mode
setw -g mode-keys vi
# I keep pressing C-t C-o instead of C-t o, and end up swapping instead of
# switching panes. This maps both keystrokes to the same action.
bind-key C-o select-pane -t :.+
# Set history size to a large number
set -g history-limit 5000
# Allows for faster key repetition
set -g escape-time 0
# Turn on mouse support
set -g mouse on