Gave2620
V2EX  ›  macOS

终端中有些命令的输出不在之前内容下面,而是打开了一个新的“窗口”

  •  
  •   Gave2620 · Dec 27, 2020 · 1961 views
    This topic created in 2053 days ago, the information mentioned may be changed or developed.
    每次都要按 q 回到之前的内容,怎么修改过来呢?
    比如`git config --list`的输出
    3 replies    2020-12-27 22:13:43 +08:00
    hiw2016
        1
    hiw2016  
       Dec 27, 2020   ❤️ 1
    大概是内容多了,git 自动调用了 less 命令来分页输出

    如果想禁用这种行为,可以试一试下面这个
    https://stackoverflow.com/questions/2183900/how-do-i-prevent-git-diff-from-using-a-pager
    snooprat
        2
    snooprat  
       Dec 27, 2020
    就是这么设计的,比如 git log,还有 man 指令。如果想对比查看,可以分割窗口。
    agagega
        3
    agagega  
       Dec 27, 2020 via Android   ❤️ 1
    --no-pager
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4267 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 10:09 · PVG 18:09 · LAX 03:09 · JFK 06:09
    ♥ Do have faith in what you're doing.