Files
2025-12-19 22:14:51 -07:00

18 lines
737 B
Markdown

---
title: "tmux mouse scroll"
date: 2021-05-06T19:00:59-06:00
tags:
- tmux
- terminal
- configuration
draft: false
---
The default setting for tmux interaction with the mouse is somewhat annoying. In a terminal window without tmux the mouse wheel will scroll the terminal line history, in tmux it scrolls through the command history. To change this behavior, and get and some other benefits, we have to add a config setting
```config
set -g mouse on
```
This enables the mouse wheel to scroll the output buffer instead of the command history. It also enables wrapped text selection by pane instead of whole terminal window and selecting text automatically copies it! This is pretty awesome, I've enabled it across all of my configs.