Created
March 30, 2025 09:41
-
-
Save mjudeikis/8d40f3b8cf8a09e52583e3612ddd96ea to your computer and use it in GitHub Desktop.
tmux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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