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