this repo has no description
1# Set prefix to C-a
2unbind C-b
3set-option -g prefix C-a
4
5set -g default-terminal "xterm-256color"
6set -as terminal-overrides ",xterm-256color:Tc"
7
8set -g base-index 1
9setw -g pane-base-index 1
10set -g renumber-windows on
11
12# tpm plugins
13set -g @plugin 'tmux-plugins/tpm'
14
15set -g @plugin 'tmux-plugins/tmux-sensible'
16set -g @plugin 'tmux-plugins/tmux-copycat'
17set -g @plugin 'sainnhe/tmux-fzf'
18set -g @plugin 'tmux-plugins/tmux-sessionist'
19
20set -g window-status-separator " "
21setw -g clock-mode-colour yellow
22set -g status-justify centre
23set -g status-left-length 40
24set -g status-style 'fg=green,none'
25set -g window-status-format ' #I #W #F '
26set -g window-status-current-style 'fg=darkgreen,bold'
27set -g window-status-activity-style 'default,default,default'
28set -g status-left ' 🤘 #[bold]#S #[default]#I:#P '
29set -g status-right '#H | %m/%d/%y | %I:%M '
30
31# Reload config file
32bind R source-file ~/.tmux.conf
33
34# Pane movement
35bind h select-pane -L
36bind j select-pane -D
37bind k select-pane -U
38bind l select-pane -R
39
40bind ';' last-window
41
42# Pane resizing
43bind -r Left resize-pane -L 2
44bind -r Down resize-pane -D 2
45bind -r Up resize-pane -U 2
46bind -r Right resize-pane -R 2
47
48# Pane maximizing, Ctrl+Space
49bind-key -n C-Space resize-pane -Z
50
51# Saner splitting.
52bind v split-window -h -l 50%
53bind s split-window -v -l 50%
54
55# Session management
56bind G choose-session
57
58# Update session cwd
59bind M-/ attach -c '#{pane_current_path}'
60
61# Activity
62setw -g monitor-activity on
63set -g visual-activity off
64
65# Autorename sanely
66# setw -g automatic-rename on
67
68# Better name management
69bind c new-window
70bind , command-prompt "rename-window '%%'"
71
72# Open daily note
73bind N split-window -h 'dn; tmux kill-pane'
74
75# Copy mode
76setw -g mode-keys vi
77bind-key -T copy-mode-vi 'v' send -X begin-selection
78bind-key -T copy-mode-vi 'y' send -X copy-pipe "pbcopy"
79bind-key -T copy-mode-vi 'r' send -X rectangle-toggle
80
81run '~/.tmux/plugins/tpm/tpm'