-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
78 lines (61 loc) · 2.82 KB
/
tmux.conf
File metadata and controls
78 lines (61 loc) · 2.82 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
# Green Colorscheme Definitions
set -g @green-dark "colour22" # Darker green for backgrounds
set -g @green-light "colour118" # Lighter green for highlights
set -g @text-light "colour250" # Light grey for general text
set -g @text-dark "colour234" # Dark grey for text on light backgrounds
set -g @bg-default "#000000" # Default background color
# general
set -g default-terminal "tmux-256color"
set -as terminal-overrides ",xterm*:Tc"
set -g history-limit 50000
set -g base-index 1
setw -g pane-base-index 1
set-option -g allow-rename off
set -g status-interval 5
set -sg escape-time 10
setw -g aggressive-resize on
set -g focus-events on
set-option -g renumber-windows on
set-option -g display-time 3000
# Status line button look
set -g status-style bg="#{@bg-default}",fg="#{@text-light}"
set -g status-left-length 90
set -g status-right-length 90
set -g status-justify centre
# Status left: session name with button style
set -g status-left '#[fg=#{@green-dark},bg=#{@bg-default}]#[fg=#{@text-light},bg=#{@green-dark}] #{session_name} #[fg=#{@green-dark},bg=#{@bg-default}]'
# Status right: time/date with button style
set -g status-right '#[fg=#{@green-dark},bg=#{@bg-default}]#[fg=#{@text-light},bg=#{@green-dark}] #(cd "#{pane_current_path}" && git branch --show-current 2>/dev/null || echo "—") #[fg=#{@green-dark},bg=#{@bg-default}]'
# Window button look
setw -g window-status-style fg="#{@text-light}",bg="#{@green-dark}"
setw -g window-status-current-style fg="#{@text-dark}",bg="#{@green-light}",bold
setw -g window-status-format '#[fg=#{@green-dark},bg=#{@bg-default}]#[fg=#{@text-light},bg=#{@green-dark}] #I #W #[fg=#{@green-dark},bg=#{@bg-default}]'
setw -g window-status-current-format '#[fg=#{@green-light},bg=#{@bg-default}]#[fg=#{@text-dark},bg=#{@green-light},bold] #I #W #[fg=#{@green-light},bg=#{@bg-default}]'
setw -g window-status-activity-style fg="#{@green-light}",bg="#{@green-dark}" # Active window flashes green
# Pane borders
set -g pane-border-style fg="#{@green-dark}"
set -g pane-active-border-style fg="#{@green-light}"
# toggle mouse mode with (m/M)
set -g mouse on
unbind m
unbind M
bind m set -g mouse off \; display 'Mouse: OFF'
bind M set -g mouse on \; display 'Mouse: ON'
# refresh settings easily
bind r source-file ~/.tmux.conf \; display 'Reloaded'
bind-key a refresh-client -S
# basic vim bindings
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Transient popup shell (non-persistent)
bind-key b display-popup -d '#{pane_current_path}' -xC -yC -w 80% -h 80% -E "bash --login"
# Unbind the default split keys
unbind '"'
unbind %
# Rebind them with the current path improvement
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind-key S new-session
bind D attach-session -d