V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
fyxtc
V2EX  ›  问与答

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

  •  
  •   fyxtc · 334 天前 · 629 次点击
    这是一个创建于 334 天前的主题,其中的信息可能已经有所发展或是发生改变。
    多开 tab ,每个 tab 都在做不同的事,有的时候一个 tab 内搞很多命令,导致其他 tab 按↑的时候要找好久这个 tab 内的前几条
    4 条回复    2023-06-11 09:03:14 +08:00
    weixiangzhe
        1
    weixiangzhe  
       334 天前
    装这个 zsh-autosuggestions
    个人 zsh 装了一下的插件,推荐实时,具体干啥我忘记了,可以试试

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

    git
    git-flow-avh
    z
    extract
    fzf-tab
    zsh-autosuggestions
    zsh-syntax-highlighting
    yesh0
        3
    yesh0  
       334 天前   ❤️ 2
    可以试一下:
    ```
    unsetopt inc_append_history
    unsetopt share_history
    ```

    https://superuser.com/questions/1245273/iterm2-version-3-individual-history-per-tab
    fyxtc
        4
    fyxtc  
    OP
       326 天前
    @yesh0 非常感谢,还给出了出处👍
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2227 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 05:36 · PVG 13:36 · LAX 22:36 · JFK 01:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.