-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtmux.conf
More file actions
116 lines (88 loc) · 2.68 KB
/
tmux.conf
File metadata and controls
116 lines (88 loc) · 2.68 KB
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
# change default prefix to C-a
unbind C-b
# free the original C-b prefix keybinding
set -g prefix C-a
# setting the delay between prefix and command
set -s escape-time 1
# disable mouse completely
setw -g mouse off
# ensure that we can send C-a to other apps
bind C-a send-prefix
# set base index for windows and panes to 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1
# reload the configuration with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# prevent automatic window renaming
set-window-option -g automatic-rename off
set-option -g allow-rename off
# splitting panes
bind | split-window -h
bind - split-window -v
# moving between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# pane resizing
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
# quick window selection
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# enable vi keys
setw -g mode-keys vi
# color settings
# set the default terminal mode to 256color mode
set -g default-terminal "screen-256color"
# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
setw -g automatic-rename off
# set the status line's colors
set -g status-fg white
set -g status-bg black
# set the color of the window list
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
# set colors for the active window
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
# command / message line colors
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# pane colors
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-fg yellow
# status line left side
set -g status-left-length 40
set -g status-left "#[bold,fg=green]#S:#[fg=yellow]#I"
# status line right side
# 15% | 28 Nov 08:15AM
set -g status-right "#[bg=colour251,fg=colour240]%I:%M%p #[bg=colour240,fg=colour251] %d %b"
# update the status bar every sixty seconds
set -g status-interval 30
# center the window list
set -g status-justify centre
# shortcut for synchronize-panes toggle
bind C-s set-window-option synchronize-panes
# setup vim like copy and paste keys
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
set -g set-clipboard on
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
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'