hikarugo
V2EX  ›  问与答

zsh 可以让单个 tab 只记录自己 tab 内的命令吗,按↑的时候就是这个 tab 内的上一条命令

  •  
  •   hikarugo · Jun 2, 2023 · 1539 views
    This topic created in 1118 days ago, the information mentioned may be changed or developed.
    多开 tab ,每个 tab 都在做不同的事,有的时候一个 tab 内搞很多命令,导致其他 tab 按↑的时候要找好久这个 tab 内的前几条
    4 replies    2023-06-11 09:03:14 +08:00
    weixiangzhe
        1
    weixiangzhe  
       Jun 2, 2023
    装这个 zsh-autosuggestions
    个人 zsh 装了一下的插件,推荐实时,具体干啥我忘记了,可以试试

    git
    git-flow-avh
    z
    extract
    fzf-tab
    zsh-autosuggestions
    zsh-syntax-highlighting
    weixiangzhe
        2
    weixiangzhe  
       Jun 2, 2023
    ————————— patch ------
    装这个 zsh-autosuggestions
    个人 zsh 装了这些的插件,推荐试试,具体干啥我忘记了,可以试试

    git
    git-flow-avh
    z
    extract
    fzf-tab
    zsh-autosuggestions
    zsh-syntax-highlighting
    kanakana
        3
    kanakana  
       Jun 2, 2023   ❤️ 2
    可以试一下:
    ```
    unsetopt inc_append_history
    unsetopt share_history
    ```

    https://superuser.com/questions/1245273/iterm2-version-3-individual-history-per-tab
    hikarugo
        4
    hikarugo  
    OP
       Jun 11, 2023
    @yesh0 非常感谢,还给出了出处👍
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3068 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 14:11 · PVG 22:11 · LAX 07:11 · JFK 10:11
    ♥ Do have faith in what you're doing.