-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
50 lines (38 loc) · 1.62 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
# Boot fish
set -g default-command "exec env fish"
# Fix spurious characters with Windows
set -s escape-time 0
# Prefix is ^a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Mouse
set -g mouse on
# History limit
set -g history-limit 100000
# Reload keybind
bind-key r source-file ~/.tmux.conf \; display-message "Config reloaded"
# True colour
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",$TERM:Tc"
# List of plugins
set -g @plugin 'kristijanhusak/tmux-simple-git-status'
set -g @plugin 'samoshkin/tmux-plugin-sysstat'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tpm'
# Status bar
set -g status-bg black
set -g status-fg white
set -g @sysstat_cpu_color_low "colour00"
set -g @sysstat_cpu_color_medium "colour00"
set -g @sysstat_cpu_color_stress "colour09"
set -g @sysstat_mem_color_low "colour00"
set -g @sysstat_mem_color_medium "colour00"
set -g @sysstat_mem_color_stress "colour09"
set -g @sysstat_cpu_view_tmpl '#[fg=#{cpu.color}]#{cpu.pused}#[fg=colour00]'
set -g @sysstat_mem_view_tmpl '#[fg=#{mem.color}]#{mem.used}#[fg=colour00]'
set -g status-left '#[fg=colour00]#[bg=colour04] #(short-pwd.fish "#{pane_current_path}" 14) #[bg=colour02]#[fg=colour04] #[fg=colour00]#{simple_git_status}#[default]#[fg=colour02] '
set -g status-left-length 128
set -g status-right '#[fg=colour05]#[fg=colour00]#[bg=colour05] #{sysstat_mem} #[fg=colour06]#[fg=colour00]#[bg=colour06] #{sysstat_cpu} #[fg=colour03]#[fg=colour00]#[bg=colour03] %H:%M #[default]'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'