V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
luckyc
V2EX  ›  Terminal

有人折腾 terminal 么? 我在 windows 上用 git bash 安装了 zsh+ohmyzsh, 遇到问题

  •  
  •   luckyc · Mar 8, 2024 · 2495 views
    This topic created in 781 days ago, the information mentioned may be changed or developed.
    vscode 的默认终端改成了这个 git bash 之后
    如果启用插件`zsh-autosuggestions`
    按下 F5 调试 python 的时候, 启动 debug 的命令行会逐个字符出现在终端上, 很慢.
    看起来像敲击上去的一样.

    又不想放弃`zsh-autosuggestions`这个插件,
    好像这个插件只在 git bash 上会这样
    9 replies    2024-10-14 12:38:26 +08:00
    qianxi0410
        1
    qianxi0410  
       Mar 8, 2024
    1. 换 wsl
    2. https://github.com/microsoft/terminal + oh-my-posh ,也可以做到类似 zsh+autosug 的效果。
    Golor
        2
    Golor  
       Mar 8, 2024
    用 Terminal + Powershell7 + oh-my-posh
    fanxasy
        3
    fanxasy  
       Mar 8, 2024
    用 msys2 搞吧
    yituanmaoxian
        4
    yituanmaoxian  
       Mar 8, 2024
    我用 Terminal + Powershell7+starship
    random1221
        5
    random1221  
       Mar 8, 2024
    我用 100$的 xshell
    pkoukk
        6
    pkoukk  
       Mar 8, 2024
    不要用 git bash
    caffeinecat18
        7
    caffeinecat18  
       Mar 8, 2024
    可以等一下今年的 warp terminal ,带提示功能。
    luckyc
        8
    luckyc  
    OP
       Mar 12, 2024   ❤️ 1
    破案, 最新版的问题

    ```bash
    # 删除现有版本
    rm -rf ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

    # 检出 v0.6.4
    git clone -b v0.6.4 https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

    # 查看版本
    cat ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions/VERSION
    ```
    cy18
        9
    cy18  
       Oct 14, 2024
    @l4ever #8 试了下,还会有一点延迟,但是比 0.7 版好了非常多
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1186 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 23:23 · PVG 07:23 · LAX 16:23 · JFK 19:23
    ♥ Do have faith in what you're doing.