-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdot_tmux.conf.tmpl
More file actions
49 lines (38 loc) · 1.4 KB
/
dot_tmux.conf.tmpl
File metadata and controls
49 lines (38 loc) · 1.4 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
{{- if and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.id "ubuntu") .tmuxOverrideShell -}}
# Override default shell
set -g default-command /usr/bin/fish
set -g default-shell /usr/bin/fish
{{ end -}}
# Enable RGB colour
set -g default-terminal 'tmux-256color'
set -ga terminal-overrides ',*256col*:Tc,alacritty:RGB'
# Keys
set -s escape-time 0
set-option -g repeat-time 0
# Mouse support
#set -g mouse on
# Status bar
set -g status-style bg=black,fg=yellow
# Windows
setw -g window-status-style fg=brightblue,bg=default
setw -g window-status-current-style fg=yellow,bg=default
setw -g automatic-rename on
setw -g automatic-rename-format "#{?#{==:#{pane_current_command},fish},#{b:pane_current_path},#{pane_current_command}}"
setw -g status-interval 5
set -g set-titles on
# Open new windows and panes in the current working directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Panes
set-option -g pane-border-style fg=blue
set-option -g pane-active-border-style fg=yellow
# Switch windows using Alt-{Left,Right,h,l} and panes using Alt-Tab
bind -n M-Left previous-window
bind -n M-Right next-window
bind -n M-h previous-window
bind -n M-l next-window
bind -n M-Tab select-pane -t :.+
# Create a new window with Alt-{Down,j}
bind -n M-Down new-window
bind -n M-j new-window