lazy-tmux

Quick tmux setup

Keep your tmux config clean with an include file:

lazy-tmux setup >> ~/.tmux.conf

This command puts some rules to the end of your tmux config. After reloading tmux config:

  • You can call picker with <prefix> + f
  • You can save all sessions with 5000 lines of scrollback with <prefix> + <C-s>
  • A daemon will run on your system, saving all sessions with 5000 lines of scrollback every 3 minutes.

Feel free to open your config and edit any parameters. For example you can configure picker popup size:

bind-key f display-popup -B -w 65% -h 75% -E 'lazy-tmux picker'

Or edit time interval:

run-shell -b 'lazy-tmux daemon --interval 5m --scrollback > /tmp/lazy-tmux.log 2>&1 || tmux display-message "lazy-tmux daemon already running"'

Or up scrollback lines limit:

run-shell -b 'lazy-tmux daemon --interval 3m --scrollback --scrollback-lines 8000 > /tmp/lazy-tmux.log 2>&1 || tmux display-message "lazy-tmux daemon already running"'

Or remap saving shortcut:

bind-key C-S run-shell 'lazy-tmux save --all --scrollback && tmux display-message "All sessions saved successfully!"'

Author: Anton Grishin (alchemmist), anton.ingrish@gmail.com

OpenSource: alchemmist/lazy-tmux

© 2026 lazy-tmux