tmux: continuing tweaks

This commit is contained in:
Paul Walker
2025-04-08 09:47:16 +01:00
parent cf247b5b44
commit 1e3f730ce9

View File

@@ -4,6 +4,10 @@ set -g prefix C-b
# But give us a way to send it through if necessary.
bind C-b send-prefix
# Fix home/end (in particular in Emacs); see https://stackoverflow.com/a/55616731
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
# Start window numbering at 1, not 0.
set -g base-index 1
@@ -44,6 +48,13 @@ bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Enable vi keys for moving around
set -w -g mode-keys vi
# To go with that, make 'v' start visual selection and 'y' copy the selection.
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-selection
# I'm not a keyboard fanatic; enable the mouse.
set -g mouse on
@@ -61,6 +72,15 @@ set -g pane-border-indicators arrows
# Give the panes their own status indicator.
set -g pane-border-status top
# Centre the window List
set -g status-justify centre
# Automatically renumber windows if we move them around.
set -g renumber-windows on
# Let me know if something's happened
# set -w -g monitor-activity on
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'