tmux: continuing tweaks
This commit is contained in:
20
tmux.conf
20
tmux.conf
@@ -4,6 +4,10 @@ set -g prefix C-b
|
|||||||
# But give us a way to send it through if necessary.
|
# But give us a way to send it through if necessary.
|
||||||
bind C-b send-prefix
|
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.
|
# Start window numbering at 1, not 0.
|
||||||
set -g base-index 1
|
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 K resize-pane -U 5
|
||||||
bind -r L resize-pane -R 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.
|
# I'm not a keyboard fanatic; enable the mouse.
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
@@ -61,6 +72,15 @@ set -g pane-border-indicators arrows
|
|||||||
# Give the panes their own status indicator.
|
# Give the panes their own status indicator.
|
||||||
set -g pane-border-status top
|
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
|
# List of plugins
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
|||||||
Reference in New Issue
Block a user