Skip to content

Instantly share code, notes, and snippets.

@mjudeikis
Created March 30, 2025 09:41
Show Gist options
  • Save mjudeikis/8d40f3b8cf8a09e52583e3612ddd96ea to your computer and use it in GitHub Desktop.
Save mjudeikis/8d40f3b8cf8a09e52583e3612ddd96ea to your computer and use it in GitHub Desktop.
tmux
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
#send commands to all windows
bind-key M-i setw synchronize-panes on
bind-key M-o setw synchronize-panes off
# Handling mouse
# Enable mouse mode
set -g mouse on
# Copy to clipboard on select
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
bind -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment