-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
62 lines (46 loc) · 1.94 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
set-option -g default-terminal 'tmux-256color'
#set-option -ga terminal-overrides ",st*:RGB"
set-option -ga terminal-overrides ",xterm-256color:RGB"
#set-option -g -a terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
# Functionality
unbind C-b
set-option -g prefix C-Space
bind C-Space send-prefix
# Remove when Windows's ssh client properly forwards C-Space
set-option -g prefix2 C-q
bind C-q send-prefix -2
set-option -g mode-keys vi
set-option -g status-keys vi
set-option -g escape-time 50
set-option -g history-limit 5000
set-option -g focus-events on
set-option -g set-titles on
#set-option -g mouse on
# Split or create window in current directory
bind M-'"' split-window -c "#{pane_current_path}"
bind M-% split-window -hc "#{pane_current_path}"
bind M-c new-window -c "#{pane_current_path}"
# Move between panes with C-[hjkl]
bind-key -r C-h select-pane -L
bind-key -r C-j select-pane -D
bind-key -r C-k select-pane -U
bind-key -r C-l select-pane -R
# TODO? bind resize keys (Shift+Ctrl+key for 1, Alt+Ctrl+key for 5)
# Reload
bind-key R source-file ~/.tmux.conf \; display-message -d 1000 "Configuration reloaded"
# Colors and style
set-option -g status-style none
set-option -g pane-border-style 'fg=brightblack'
set-option -g pane-active-border-style 'fg=brightcyan'
# Dim square brackets for status formats
%hidden lbr="#[fg=brightblack][#[fg=default]"
%hidden rbr="#[fg=brightblack]]#[fg=default]"
set-option -g status-left "$lbr#S$rbr "
set-option -g status-right "#{?client_prefix,${lbr}prefix${rbr} ,}"
set-option -ag status-right "#{?pane_title,$lbr#{=21:pane_title}$rbr ,}"
set-option -ag status-right "$lbr%H:%M %d-%b-%y$rbr"
set-option -g window-status-format "${lbr}#I${rbr}#W#[fg=green]#F"
set-option -g window-status-current-format "#[bold]${lbr}#[fg=cyan]#I${rbr}#[fg=cyan]#W#[fg=green]#F"
set-option -g window-status-bell-style 'fg=red,bold'
set-option -g message-style "fg=yellow,bold"
set-option -g message-command-style "fg=yellow,bold,reverse"