Lobsters | 📄 原文链接 | 2026-07-22 collected

lazy-tmux:带滚动回溯恢复的 tmux 会话管理器

source: lazy-tmux.xyz — 2026-07-21

概述

lazy-tmux 是一个命令行工具,能对 tmux 会话进行快照(包含运行中的进程和终端滚动历史),并通过 TUI 界面懒加载恢复。即使执行 tmux kill-server 彻底清除所有会话,也能完整恢复——shell 的滚动回溯和正在运行的服务都毫发无损。由 Anton Grishin 开发,开源在 GitHub,支持 Docker 一键体验。

核心要点

  • 核心能力:快照并恢复 tmux 会话——包含运行中的进程和完整的终端滚动回溯。
  • 即使 tmux kill-server 清除所有会话,也可通过 TUI 选择并完整恢复。
  • 提供 Docker 一键体验:docker run -it --rm alchemmist/lazy-tmux:latest。
  • 本质上是一个 会话持久化层,填补了 tmux 原生能力的空白。

金句

We detach, run tmux kill-server to wipe everything, then bring it all back by picking the session in the TUI — the shell's scrollback and the running processes come back intact.
back to Lobsters