-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
57 lines (45 loc) · 1.69 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
set -g default-terminal "screen-256color"
set -g status-left-length 32
set -g status-right-length 150
set -g status-fg white
set -g status-bg colour234
set -g window-status-activity-attr bold
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,nobold] '
set -g status-right '#(eval tmux-airline `tmux display -p "#{client_width}"`)'
set -g window-status-format "#[fg=colour244,bg=colour234]#I #[default]#W "
set -g window-status-current-format "#[fg=colour234,bg=colour31]#[fg=colour117,bg=colour31] #I #W #[fg=colour31,bg=colour234,nobold]"
# remap prefix to C-a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Vim movement
set-window-option -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# open windows/panes with current path
bind-key '"' split-window -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
bind-key c new-window -c "#{pane_current_path}"
bind-key t split-window -h -l 80 -c "#{pane_current_path}"
# Bind <C-a>t to split a new vertical window 80 columns wide (a "t"erminal)
bind-key t split-window -h -l 80
set -g history-limit 10000
# Just click it
set-option -gq mouse-select-pane on
set-option -gq mouse-select-window on
set-option -gq mouse-resize-pane on
# for new tmux
set-option -gq mouse on
# Scroll your way into copy mode (scrollback buffer) and select text for
# copyingq with the mouse
setw -gq mode-mouse on
setw -gq mode-mouse on
# Fix slow Vim escape, https://vi.stackexchange.com/a/30801
set -sg escape-time 10