-
Notifications
You must be signed in to change notification settings - Fork 9
/
.tmux.conf
45 lines (35 loc) · 1.25 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
# Remap the prefix from C-b to C-a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Remap the split commands to be like GNU Screen
bind | split-window -h -c '#{pane_current_path}'
bind S split-window -v -c '#{pane_current_path}'
unbind '"'
unbind %
# Map r to reload the source file
bind r source-file ~/.tmux.conf
# Map pane switching with vim keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Enable vim key bindings for navigating buffers
set-window-option -g mode-keys vi
# Resize a window such that it is 15 lines tall
bind A resize-pane -y 15
# Resize a window such that it fits 80 character lines in vim
# NOTE: This 84 character thing is optimized for files with triple-digit number
# of lines, for quadruple digits or higher it will display incorrectly
bind B resize-pane -x 84
# Allow a window to be full-size, even if there is a smaller client viewing
bind G resize-window -A
# Kill all of the windows and exit
bind \\ confirm-before -p "kill-window #W? (y/n)" kill-window
# Set the status bar time format
set -g status-interval 1
set -g status-right-length 150
set -g status-left-length 150
set -g status-right "%A, %B %d, %Y %I:%M:%S%P"
# Set the clock-mode time format
set -g clock-mode-style 12