-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
92 lines (70 loc) · 2.3 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
80
81
82
83
84
85
86
87
88
89
90
91
# Escape key
unbind C-b
set -g prefix C-s
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# Shorten input delay
set -sg escape-time 0
# Terminal
set -g default-terminal "screen-256color"
set -g status-keys vi
set -g history-limit 1000
setw -g monitor-activity off
set -g visual-activity on
# kill session
bind-key Q kill-session
# Vim copying
setw -g mode-keys vi
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-selection
# paste is ]
# Vim style split + perserve pwd
bind-key v split-window -h -c '#{pane_current_path}'
bind-key s split-window -v -c '#{pane_current_path}'
# Resizing
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Switch between windows
bind n next-window
# Reload tmux config
bind-key r source-file ~/.tmux.conf
# No delay for escape key press
set -sg escape-time 0
## THEME
# status bar backgroung
set-option -g status-bg black
# window window text
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg colour12
set-window-option -g window-status-current-attr bold
# non-focued window
set-window-option -g window-status-fg white
set-window-option -g window-status-bg default
# left status output
set-window-option -g status-left '#[fg=colour151] #(whoami) ' # (#S) puts session number
set-window-option -g status-left-length 30
# right status output
set-window-option -g status-right '#[fg=colour9] #{pane_current_path} #[fg=yellow]#(date | cut -d " " -f 1,3)#[default] #[fg=white]%H:%M#[default]'
#set-window-option -g status-right '#[fg=colour9] #(gitTmuxBar)#[default] #[fg=yellow]#(date | cut -d " " -f 1,3)#[default] #[fg=white]%H:%M#[default]'
# status refresh rate
set-window-option -g status-interval 5
# pane border
set-option -g pane-border-fg black
set-option -g pane-active-border-fg colour12
# message text
set-option -g message-bg black
set-option -g message-fg brightred
# pane number display
set-option -g display-panes-active-colour blue
set-option -g display-panes-colour brightred
# clock
#set-window-option -g clock-mode-colour green
# fix resizing
setw -g aggressive-resize on