Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
less在带有 iTerm2 的 Zsh 中使用 -like 命令,例如运行、、git log --graph -n 3或git stash list,less README.md将输出放在单独的视图中。我希望行为更像cat是输出在主窗口中的位置。例如,当我使用 时git log,我希望能够参考我刚刚看到的提交哈希。
less
git log --graph -n 3
git stash list
less README.md
cat
git log
修复是在 iTerm2>Preferences>Terminal 中找到的 iTerm2设置“禁用保存/恢复备用屏幕”。选中相关的框会给出所需的行为。