-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
74 lines (55 loc) · 1.78 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
#
# Hotkeys
#
# Set the prefix to Ctrl-S
unbind C-b
set -g prefix C-s
set-window-option -g mode-keys vi
# vimstyle up/down/left/right handling
unbind-key j ; bind-key -r j resize-pane -D 10
unbind-key k ; bind-key -r k resize-pane -U 10
unbind-key h ; bind-key -r h resize-pane -L 10
unbind-key l ; bind-key -r l resize-pane -R 10
# Force a reload of the config file with 'r' key
unbind r
bind r source-file ~/.tmux.conf \; display-message "Reloaded!"
# Synchronize panes
unbind S
bind-key S set-window-option synchronize-pane
#
# Appearance
#
# Status bar
set -g status-style bg=default
set-option -g status-interval 5
set-option -g status-justify left
set-option -g status-left-length 70
set-option -g status-left '#[fg=green][#{session_name}] '
set-option -g status-right ''
# Default window title colors
set -g window-status-style fg=cyan
# Active window title colors
set -g window-status-current-style fg=black,bg=cyan
# Color for pane divider
set -g pane-border-style fg=white
set -g pane-active-border-style fg=cyan,bg=default
# Tell terminal it supports 256 colors, needed for vim-airline
set -g default-terminal "screen-256color"
#
# Misc
#
# More scrollback
set-option -g history-limit 10000
# Esc wait time to handle slow server connection but not be too obnoxious
set-option -sg escape-time 1
# Use largest screen that's actively viewed
set-window-option -g aggressive-resize on
# Disable automatic renaming of panes
set-window-option -g automatic-rename off
set-option -g allow-rename off
# New windows will be in the same path as the originating window
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Focus events for vim
set-option -g focus-events on