-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.tmux.conf
56 lines (41 loc) · 1.36 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
# Set the prefix and free the original Ctrl-b key binding
set -g prefix C-j
unbind C-b
# Set the base index for windows to 1 instead of 0
set -g base-index 1
# Set the base index for panes to 1 instead of 0
setw -g pane-base-index 1
# Reload the tmux.conf
bind r source-file ~/.tmux.conf \; display "tmux.conf reloaded!"
# Splitting panes
bind | split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
# Navigating between the panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Pane resizing with repeat limit.
bind -r H resize-pane -L 1
bind -r J resize-pane -D 1
bind -r K resize-pane -U 1
bind -r L resize-pane -R 1
# Mouse support
set -g mouse on
# Set the default terminal mode to 256color mode
set -g default-terminal "screen-256color"
# Set the status line colors
set -g status-style fg=white,bg=colour235
# Set the color for the active window
setw -g window-status-current-style fg=white,bold,bg=red
# Colors for the pane borders
setw -g pane-border-style fg=green,bg=black
setw -g pane-active-border-style fg=white,bg=yellow
# Status line left
set -g status-left "#[fg=cyan]#S #[fg=yellow]#I #[fg=cyan]#P - "
set -g status-left-length 40
# Status line right
set -g status-right "#[fg=cyan]#{pane_current_path}"
# Enable activity alerts
setw -g monitor-activity on
set -g visual-activity on