-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_tmux.conf
118 lines (93 loc) · 3.5 KB
/
dot_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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Load TPM if not installed
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# Default sensible config
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 1
# increase scrollback buffer size
set -g history-limit 50000
# tmux messages are displayed for 4 seconds
set -g display-time 4000
# refresh 'status-left' and 'status-right' more often
set -g status-interval 5
# upgrade $TERM
set -g default-terminal "screen-256color"
# emacs key bindings in tmux command prompt (prefix + :) are better than
# vi keys, even for vim users
set -g status-keys emacs
# focus events enabled for terminals that support them
set -g focus-events on
# super useful when using "grouped sessions" and multi-monitor setup
set -g aggressive-resize on
# Allow mouse to scroll / select pane
set -g mouse on
# emacs key bindings in tmux command prompt (prefix + :) are better than
# vi keys, even for vim users
set -g status-keys emacs
# reload config file
bind r source-file ~/.tmux.conf
# Add new binds for split
unbind v
unbind h
unbind % # Split vertically
unbind '"' # Split horizontally
bind v split-window -h -c "#{pane_current_path}"
bind h split-window -v -c "#{pane_current_path}"
# Select pane with ctrl + hjkl
bind -n C-h select-pane -L
bind -n C-j select-pane -D
bind -n C-k select-pane -U
bind -n C-l select-pane -R
# Show git branch
# set -g status-right '#(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD)'
# Design
set -g status-bg colour8
set -g status-fg colour145
# TMUX plugins
# set -g @plugin 'kristijanhusak/tmux-simple-git-status'
# set -g status-right "#{simple_git_status}"
#set -g @plugin 'wfxr/tmux-power'
#set -g @tmux_power_theme 'gold'
# TMUX powerline
# set-option -g status on
# set-option -g status-interval 2
# set-option -g status-justify "centre"
# set-option -g status-left-length 60
# set-option -g status-right-length 90
# set-option -g status-left "#(~/.tmux/plugins/tmux-powerline/powerline.sh left)"
# set-option -g status-right "#(~/.tmux/plugins/tmux-powerline/powerline.sh right)"
# set-hook -g session-created 'run-shell "~/.tmux/plugins/tmux-powerline/powerline.sh init"' # prettifies the window-status segments
# set -g status-right '#[bg=235,fg=#ffb86c]test #[fg=#ffb86c]#[fg=235]#[bg=100] %d %b / %H:%M:%S'
G01=#080808 #232
G02=#121212 #233
G03=#1c1c1c #234
G04=#262626 #235
G05=#303030 #236
G06=#3a3a3a #237
G07=#444444 #238
G08=#4e4e4e #239
G09=#585858 #240
G10=#626262 #241
G11=#6c6c6c #242
G12=#767676 #243
#TC=#ffb86c
TC=#282a36
GRAY03=#6272a4
GRAY02=#8be9fd
GRAY01=#cb8ad9
#GRAY03=#7f3e8c
#GRAY02=#cb8ad9
#GRAY01=#e1bce9
white=#ffffff
test=#000000
#SEPARATOR_RIGHT=
SEPARATOR_RIGHT=
T=
SEP=#cb8ad9
SEP2=#6272a4
#RS="#[fg=$GRAY01]${SEPARATOR_RIGHT}#[fg=$test,bg=$GRAY01] #{pane_current_path} #[fg=$GRAY02]${SEPARATOR_RIGHT}#[fg=$G01,bg=$GRAY02,bold] %a %d #[fg=$GRAY03]${SEPARATOR_RIGHT}#[fg=$white,bg=$GRAY03,bold] %H:%M:%S "
set-option -g status-right-length 390
RS="#[fg=$GRAY02]${SEPARATOR_RIGHT}#[fg=$GRAY01,bg=$GRAY02]${SEPARATOR_RIGHT}#[fg=$test,bg=$GRAY01] #{pane_current_path} #[fg=$SEP2,bg=$GRAY01]${SEPARATOR_RIGHT}#[fg=$GRAY02,bg=$SEP2]${SEPARATOR_RIGHT}#[fg=$G01,bg=$GRAY02,bold] %a %d #[fg=$SEP,bg=$GRAY02]${SEPARATOR_RIGHT}#[fg=$GRAY03,bg=$SEP]${SEPARATOR_RIGHT}#[fg=$white,bg=$GRAY03,bold] %H:%M:%S "
set -g status-right "$RS"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'