-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
100 lines (61 loc) · 2.16 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
86
87
88
# Change prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Change the indexing of windows and pane starting from 1 rather than 0
set -g base-index 1
setw -g pane-base-index 1
# Add a bit more scroll history in the buffer.
set -g history-limit 50000
# Enable full mouse support
set -g mouse on
# Join windows
bind-key v command-prompt -p "join pane from:" "join-pane src-pane '%%'"
bind-key e command-prompt -p "join pane to:" "join-pane -t '%%'"
# Ensure window index numbers get reordered on delete.
set-option -g renumber-windows on
# change the copy mode key
unbind [
bind-key tab copy-mode
# Using vi keys in buffer
set -g mode-keys vi
#################################
# Color Scheme #
################################
# Basic color support setting
set-option -g default-terminal "screen-256color"
# Default bar color
set-option -g status-style bg='#1b1c36',fg='#ecf0c1'
# Active Pane
set -g pane-active-border-style "fg=#5ccc96"
# Inactive Pane
set -g pane-border-style "fg=#686f9a"
# Active window
set-option -g window-status-current-style bg='#686f9a',fg='#ffffff'
# Message
set-option -g message-style bg='#686f9a',fg='#ecf0c1'
set-option -g message-command-style bg='#686f9a',fg='#ecf0c1'
# When Commands are run
set -g message-style "fg=#0f111b,bg=#686f9a"
# rebind vsplit
unbind %
bind-key - split-window -h
#################################
# Tmux plugins #
#################################
# Installation :
# $ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Key bindings
# prefix + I
# Installs new plugins from GitHub or any other git repository
# Refreshes TMUX environment
# prefix + U for update plugins
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Reload config
bind r source-file ~/.tmux.conf \; display "Reloaded!"