Stop retyping broken commands: Term-Undo clears errors and restores your Zsh buffer with Alt+U
说明与用途
Term‑Undo 通过 Alt+U 或 undo 命令快速清除错误输出并恢复 Zsh 缓冲区中的上一条命令。
问题
Users lose time retyping commands after multi‑line error output in Zsh.
结果
A cleaner terminal and a more convenient command‑recovery workflow.
工作流
- Execute a command that produces error output
- Press Alt+U or type undo to trigger Term‑Undo
- Term‑Undo clears the terminal and restores the previous command to the buffer
- Edit or execute the restored command
证据
Term‑Undo is a lightweight Zsh utility designed to simplify terminal error recovery by clearing unwanted multi‑line error output and restoring a previously entered command to the input buffer.
Press Alt + U to trigger terminal cleanup and command recovery.
Install Term‑Undo with a single command in your Zsh terminal.
- 记录日期: 2026-10-27T05:11:29.646Z