-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
74 lines (56 loc) · 2.12 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
set-option -g default-shell /bin/zsh
# Move prefix to...
# unbind-key C-t
# set-option -g prefix C-b
# Plugins
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
# Start indices on correct side of keyboard
set-option -g base-index 1
# Easier splits
unbind-key '"'
unbind-key %
bind-key | split-window -h
bind-key _ split-window -v
# Resize and navigate splits
unbind-key H
unbind-key L
unbind-key J
unbind-key K
bind-key -r H resize-pane -L 50
bind-key -r L resize-pane -R 50
bind-key -r J resize-pane -D 10
bind-key -r K resize-pane -U 10
unbind-key h
unbind-key l
unbind-key j
unbind-key k
bind-key h select-pane -L
bind-key l select-pane -R
bind-key j select-pane -D
bind-key k select-pane -U
set-option -sg escape-time 0
# TMUX Resurrect shortcuts
set -g @resurrect-save "S"
set -g @resurrect-restore "R"
# Prefer unicode chars
#set-option -g status-utf8 on
#set-option -ga terminal-overrides ',*:enacs@:smacs@:rmacs@:acsc@'
# Trick the term to think we are actually an working 256 color screen
set -g default-terminal "screen-256color"
#### RELOAD CONFIG
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
unbind ^B
bind ^B select-pane -t :.+
set -g status-bg colour233
set -g status-fg colour255
setw -g window-status-format '#[fg=colour245]#I #[fg=colour255]#W#[default] '
setw -g window-status-current-format '#[bg=colour25,fg=colour233] #[fg=colour255] #I #W #[bg=colour233,fg=colour25] '
# show host name and IP address on left side of status bar
set -g status-left-length 85
set -g status-left "#[fg=green]: #h : #[fg=brightblue]#(curl icanhazip.com) #[fg=yellow]#(ifconfig en0 | grep 'inet ' | awk '{print \"en0 \" $2}') #(ifconfig en1 | grep 'inet ' | awk '{print \"en1 \" $2}') #(ifconfig en3 | grep 'inet ' | awk '{print \"en3 \" $2}') #[fg=red]#(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') "
# show session name, window & pane number, date and time on right side of
# status bar
set -g status-right-length 60
set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]: %d %b %Y #[fg=green]: %l:%M %p : #(date -u | awk '{print $4}') :"