n2l
V2EX  ›  问与答

阻止 win10 终端执行 bash 进入 wsl2

  •  
  •   n2l · May 20, 2024 via iPhone · 973 views
    This topic created in 785 days ago, the information mentioned may be changed or developed.
    RT ,想在终端执行 bash 的时候执行的是 win 安装的 git bash 而不是进入 wsl2 ,尝试将 git bash 所在目录拉到系统环境变量第一条,但是好像没用。
    artiga033
        1
    artiga033  
       May 20, 2024 via Android
    wsl 的 bash 位于 `%LOCALAPPDATA%\Microsoft\Windows` 建议再检查下顺序

    也可以用 powershell 命令`gcm -All bash | fl`来排查
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5456 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 07:01 · PVG 15:01 · LAX 00:01 · JFK 03:01
    ♥ Do have faith in what you're doing.