-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
74 lines (56 loc) · 2.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
############################################################################
# Main Settings
############################################################################
# Use urxvt
set -g default-terminal "rxvt-unicode-256color"
# Enable scrollback for urxvt
set-option -ga terminal-override ',rxvt-uni*:XT:Ms=\E]52;%p1%s;%p2%s\007'
# Set scrollback history limit
set -g history-limit 20000
# Shorten command delay
set -sg escape-time 1
# Set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1
# Fix ssh-agent when tmux is detached
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
############################################################################
# Key Bindings
############################################################################
# Reload configuration
bind r source-file ~/.tmux.conf \; display " TMUX Configuration Reloaded!"
# Nav keys
bind-key -n C-Left previous-window
bind-key -n C-Right next-window
# Split window
bind-key | split-window -h
bind-key - split-window -v
############################################################################
# Bar Settings
############################################################################
# Colors
set-option -g message-style "fg=colour0"
set-option -g message-style "bg=colour202"
set-option -g pane-border-style "fg=colour235"
set-option -g pane-active-border-style "fg=colour240"
# Bar general settings
set-option -g status on
set -g status-interval 5
set -g status-justify centre
# Visual notification of activity in other windows
setw -g monitor-activity on
set -g visual-activity on
# Window names format
set -g window-status-format " #W "
set -g window-status-current-format " #W "
# Status bar colors
set-option -g status-style "fg=colour46, bg=colour237"
set-window-option -g window-status-style "fg=colour45, bg=colour237"
set-window-option -g window-status-current-style "fg=colour46, bg=colour237"
set-window-option -g window-status-activity-style "fg=colour202, bg=colour237"
# Status bar size
set-option -g status-left-length 32
set-option -g status-right-length 32
# Left/Right side of the bar
set -g status-left " k8s: #[fg=colour45]#(kubectl config current-context | sed -e 's|.*/||g' -e 's|-eks.*||g') "
set -g status-right " Load: #[fg=colour45]#(awk '{ print $1 }' /proc/loadavg) #[fg=colour46]Ram: #[fg=colour45]#(free -h | awk '/Mem/{ print $3\"/\"$2}') "