-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.tmux.conf
More file actions
168 lines (136 loc) · 4.86 KB
/
.tmux.conf
File metadata and controls
168 lines (136 loc) · 4.86 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# Remap the primary key to the ` mark
unbind C-b
set -g prefix `
bind-key ` send-prefix
# split panes using | and -
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
# Reload source file
bind-key r source-file ~/.tmux.conf \; display-message "Configuration reloaded"
# don't rename windows automatically
set-option -g allow-rename off
# turn down the chain command timeout
set-option -g repeat-time 275
# improve colors
set -g default-terminal 'screen-256color'
# start window numbers at 1 to match keyboard order with tmux window order
set -g base-index 1
set-window-option -g pane-base-index 1
# soften status bar color from harsh green to light gray
# remove administrative debris (session name, hostname, time) in status bar
set -g status-left ''
set -g status-right ''
# increase scrollback lines
set -g history-limit 10000
# Allow mouse usage
set -g mouse on
# Zsh
set-option -g default-shell /bin/zsh
# Resize keys https://www.youtube.com/watch?v=oGs7h9ECL0Y
# vim-like pane resizing
bind -r C-k resize-pane -U
bind -r C-j resize-pane -D
bind -r C-h resize-pane -L
bind -r C-l resize-pane -R
# vim-like pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# vim-like pane switching with focus
bind -r K select-pane -U \; resize-pane -Z
bind -r J select-pane -D \; resize-pane -Z
bind -r H select-pane -L \; resize-pane -Z
bind -r L select-pane -R \; resize-pane -Z
# Last client
bind -r P switch-client -l
# Clear cache
bind -n C-k clear-history
# Tmux Copycat
# run-shell ~/.vim/bundle/tmux-copycat/copycat.tmux
# Tmux Yank
# run-shell ~/.vim/bundle/tmux-yank/yank.tmux
######################
### DESIGN CHANGES ###
### http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/ ###
######################
# panes
## Status bar design
# status line
# set -g status-utf8 on
set -g status-justify left
set -g status-interval 2
set-option -g status-position top
# messaging
set -g message-command-style fg=blue,bg=black
#window mode
# window status
# setw -g window-status-format " #F#I:#W#F "
# setw -g window-status-current-format " #F#I:#W#F "
# setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W "
# setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W "
# Info on left (I don't have a session display for now)
set -g status-left ''
# loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
# The sessions
# sort sessions by name
bind s choose-tree -sZ -O name
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'dracula/tmux'
set -g @plugin 'christoomey/vim-tmux-navigator'
# available plugins: battery, cpu-usage, git, gpu-usage, ram-usage, network, network-bandwidth, network-ping, weather, time
set -g @dracula-plugins "git"
# available colors: white, gray, dark_gray, light_purple, dark_purple, cyan, green, orange, red, pink, yellow
# set -g @dracula-[plugin-name]-colors "[background] [foreground]"
set -g @dracula-cpu-usage-colors "pink dark_gray"
# set -g @dracula-weather-colors "light_purple dark_gray"
set -g @dracula-show-powerline true
# for left
set -g @dracula-show-left-sep
# for right symbol (can set any symbol you like as seperator)
set -g @dracula-show-right-sep
set -g @dracula-show-flags true
# the default is 5, it can accept any number
set -g @dracula-refresh-rate 5
# it can accept `session`, `smiley`, `window`, or any character.
set -g @dracula-show-left-icon session
# default is 1, it can accept any number and 0 disables padding.
set -g @dracula-left-icon-padding 1
set -g @dracula-border-contrast true
set -g @dracula-cpu-usage-label "CPU"
set -g @dracula-cpu-display-load true
set -g @dracula-battery-label "Battery"
set -g @dracula-gpu-usage-label "GPU"
set -g @dracula-ram-usage-label "RAM"
set -g @dracula-ping-server "google.com"
set -g @dracula-ping-rate 5
set -g @dracula-show-timezone false
set -g @dracula-day-month falsk
set -g @dracula-military-time false
set -g @dracula-git-disable-status true
# default is ✓. Avoid using non unicode characters that bash uses like $, * and !
set -g @dracula-git-show-current-symbol ✓
# default is unicode !. Avoid bash special characters
set -g @dracula-git-show-diff-symbol !
# default is unicode no message
set -g @dracula-git-no-repo-message ""
# default is false
set -g @dracula-git-no-untracked-files true
set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'
# recomended for tmux-yank
# set -g clipboard on
# Initialize TMUX Plugin Manager
run -b '~/.tmux/plugins/tpm/tpm'