Last active
April 5, 2026 16:45
-
-
Save goncalor/f08e02ce7596f81ca7bcedb768149e19 to your computer and use it in GitHub Desktop.
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
| # split panes | |
| bind - split-window -v -c "#{pane_current_path}" | |
| bind _ split-window -h -c "#{pane_current_path}" | |
| # create window | |
| bind c new-window -c "#{pane_current_path}" | |
| # switch panes | |
| bind -n M-h select-pane -L | |
| bind -n M-j select-pane -D | |
| bind -n M-l select-pane -R | |
| bind -n M-k select-pane -U | |
| # copy mode | |
| set-window-option -g mode-keys vi | |
| bind -n M-c copy-mode | |
| bind -n M-v paste-buffer -r | |
| bind -n M-u copy-mode -u | |
| bind -T copy-mode-vi u send-keys -X halfpage-up | |
| bind -T copy-mode-vi d send-keys -X halfpage-down | |
| bind -T copy-mode-vi v send-keys -X begin-selection | |
| bind -T copy-mode-vi V send-keys -X select-line | |
| # copy selection to tmux and clipboard | |
| bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -selection clipboard' | |
| # with Enter, paste selection, but remove any line feeds (so we don't accidentally run a command) | |
| bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -selection clipboard' \; paste-buffer -s '' | |
| # history | |
| set-option -g history-limit 10000 | |
| # disable waiting for escape | |
| set-option -s escape-time 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment