-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.tmux.conf
79 lines (61 loc) · 1.47 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
# Set the prefix to ^A.
unbind C-b
set -g prefix ^A
bind a send-prefix
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on
# use 256 color terminal
set -g default-terminal "xterm-256color"
# xterm keys
set-window-option -g xterm-keys on
# mouse support
set -g mouse on
# New window: c
unbind c
bind c new-window -c "#{pane_current_path}"
# Detach: d
unbind d
bind d detach
# Next window: n
unbind n
bind n next-window
# Previous window: p
unbind p
bind p previous-window
# Last window: ^A
unbind ^A
bind ^A last-window
# Kill window: k
unbind k
bind k confirm-before "kill-window"
# Redisplay: l
unbind l
bind l refresh-client
# More straight forward key bindings for splitting: | and -
unbind %
unbind |
bind | split-window -h -c "#{pane_current_path}"
unbind '"'
unbind -
bind - split-window -v -c "#{pane_current_path}"
# History
set -g history-limit 10000
# Terminal emulator window title
set -g set-titles on
set -g set-titles-string '#H [#S] #I.#P #W'
# Status Bar
set -g status-bg '#282828'
set -g status-fg '#ffffff'
set -g status-interval 30
set -g status-left '#[fg=white][#S]#[default] '
set -g status-right ''
# Notifying if other windows have activity
setw -g monitor-activity on
set -g visual-activity on
# Highlighting the active window in status bar
setw -g window-status-current-style bg=red,fg=white
# Reload configuration: r
unbind r
bind r source-file ${HOME}/.tmux.conf \; display-message "tmux.conf reloaded"