V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
l4ever
V2EX  ›  Terminal

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

  •  
  •   l4ever · 50 天前 · 818 次点击
    这是一个创建于 50 天前的主题,其中的信息可能已经有所发展或是发生改变。
    vscode 的默认终端改成了这个 git bash 之后
    如果启用插件`zsh-autosuggestions`
    按下 F5 调试 python 的时候, 启动 debug 的命令行会逐个字符出现在终端上, 很慢.
    看起来像敲击上去的一样.

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

    ```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
    ```
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1404 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 17:24 · PVG 01:24 · LAX 10:24 · JFK 13:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.