WSL环境部署篇

29次阅读
没有评论

WSL环境部署

  • WSL自定义位置安装
    • 前往[此网址](https://learn.microsoft.com/zh-cn/windows/wsl/install-manual#downloading-distributions),选取自己喜欢的`wsl`版本,下载压缩包
    • 将下载好的包更改后缀为`zip`进行解压,完成解压后进行选取适合的架构版本
    • 将选择的架构版本再次更改后缀名为`zip`,解压,并移动到想要安装的磁盘位置,点击`exe`稍等片刻后即可安装成功
    • 提示`NAT`问题的话,则搜索`WSL settings`,将网络模式改为`mirror`,执行`wsl -shatdown`并重启
  • brew安装

    • bash -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"n
    • echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> $HOME/.bashrc
    • source ~/.bashrc
  • oh-my-posh安装

    • brew install oh-my-posh
    • echo 'eval "$(oh-my-posh --init --shell bash --config /home/linuxbrew/.linuxbrew/Cellar/oh-my-posh/25.10.2/themes/clean-detailed.omp.json)"' >> $HOME/.bashrc
    • source ~/.bashrc
正文完
 0
lizedong
版权声明:本站原创文章,由 lizedong 于2025-04-02发表,共计660字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)