-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
executable file
·55 lines (41 loc) · 1.4 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
# .tmux.conf
# NeoVim Health Check Advice
set-option -sg escape-time 10
set-option -g focus-events on
set-option -sa terminal-features ',xterm-256color:RGB'
#set-option -g default-command "reattach-to-user-namespace -l zsh"
# map leader shortcut like screen
set -g prefix C-a
# Status bar
set -g status-style bg=black,fg=white
set -g status-left "#[fg=green]#(hostname | cut -f 1 -d.)"
set -g status-interval 60
WEATHER='#(curl -s wttr.in/seven%%20valleys%%20pa\?format\="+%%c%%20%%t%%20%%h%%20%%w%%20&period=60" || echo "wftl")'
DATE='#[fg=red]#(date +"%l:%M")'
set -g status-right "$WEATHER $DATE"
# default window title colors
set-window-option -g window-status-style fg=white,bg=default,dim
# active window title colors
set-window-option -g window-status-current-style fg=white,bg=default,bright
set-option -g set-titles on
set-option -g set-titles-string "#{session_name} - #{host}"
# vi mode
set-window-option -g mode-keys vi
# don't care what happens in another window
setw -g monitor-activity off
set -g visual-activity off
# splitting of windows
unbind % # Remove default binding since we’re replacing
bind | split-window -h
bind - split-window -v
# vim splits style movement
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# previous window
bind m last-window
# Sort by name not index
bind s choose-tree -s -O name
# scrollback history limit
set -g history-limit 32768