-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
86 lines (61 loc) · 2.03 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
75
76
77
78
79
80
81
82
83
84
85
# Increase scrollback buffer size
set -g history-limit 100000
# Change refresh status line interval
set -g status-interval 5
# Change the prefix from C-b to C-a
set -g prefix C-a
unbind C-b
# Set the default terminal mode to 256color mode
set -g default-terminal "screen-256color"
# Ensure that we can send Ctrl-a to other apps
bind C-a send-prefix
# Reload tmux conf
bind r source-file ~/.tmux.conf\; display-message "Reload config!"
# Setting the delay between prefix and command
set -s escape-time 1
# Set the base index for pane and widows to 1 instead of 0
set -g base-index 1
set -g pane-base-index 1
# Spliting panes with | and -
bind | split-window -h
bind - split-window -v
# Remaping movement keys, use h, j, k, l
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resizing panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Disable mouse
set -g mouse off
##### THEME #####
# Status bar
set -g status-style fg=blue,bold,bg=black
set -g window-status-style fg=blue
set -g window-status-current-style fg=colour226,bold,bg=default
# Message line
set -g message-style fg=white,bold,bg=colour238
# Customize left pane
set -g status-left-length 40
set -g status-left "Session: #[fg=colour226]#S"
# Customize right pane
set -g status-right "#[fg=colour70]#(whoami)#[fg=colour220]@#[fg=default]#h #[fg=colour246] %d %b %R"
# Center the window list
set -g status-justify centre
#########################
##### TMUX PLUGINS ######
#########################
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# use prefix + I (capitalize i) to install plugins
#########################
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Other plugins:
set -g @plugin 'tmux-plugins/tmux-yank' # Copy to the system clipboard
set -g @plugin 'christoomey/vim-tmux-navigator'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'