-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
55 lines (45 loc) · 1.56 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
# remap prefix from 'C-b' to 'C-w'
# unbind C-b
# set-option -g prefix C-w
# bind-key C-w send-prefix
# split panes using | and -
bind | split-window -h
bind \\ split-window -h
bind _ split-window -v
bind - split-window -v
# unbind '"'
# unbind %
# turn off pane switching with Esc
set -s escape-time 0
# set so that .vimrc can change cursor on insert mode
set -g default-terminal xterm-256color
set -as terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[2 q'
# tmux colors
# added due to issues with vim termguicolors wthin tmux
set -g default-terminal "xterm-256color"
set -ag terminal-overrides ",xterm-256color:Tc"
# vim keys in all the modes
setw -g mode-keys vi
set -g status-keys vi
# switch panes using Alt + vimkeys or prefix + vimkeys
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-j select-pane -U
bind -n M-k select-pane -D
bind h select-pane -L
bind l select-pane -R
bind j select-pane -U
bind k select-pane -D
# status bar theming
set -g status-style 'bg=colour0 fg=colour7'
set -g status-left ''
set -g status-right '#[fg=colour3 bg=colour0 bold] %m/%d %H:%M:%S#[fg=colour4 bg=colour0] on #[fg=colour2]#(cat /etc/hostname) #[fg=colour4]in #[fg=colour1]#S '
set -g status-right-length 200
setw -g window-status-current-style 'fg=colour1 bg=colour0 bold'
setw -g window-status-current-format ' #I #[fg=colour4 bold]#W#[fg=colour7]#F '
setw -g window-status-format ' #I#[fg=colour7] #[fg=colour12]#W#[fg=colour6]#F '
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
# mouse on
set -g mouse on
# reload conf files
bind r source-file ~/.tmux.conf