更新 README.md

删除wsl2 防火墙说明,修改安装命令
This commit is contained in:
2025-08-24 17:41:25 +08:00
parent 11ae6d6a3a
commit f82fb011aa

View File

@@ -18,8 +18,11 @@ lazyzsh 的目录为 `~/.lazyzsh/`
**安装命令**
```
git clone --depth 1 https://git.unvec.site/stevenhobs/lazyzsh ~/.lazyzsh #克隆代码
echo "source ~/.lazyzsh/lazy.zsh" >> ~/.zshrc #引入配置
#克隆代码
git clone --depth 1 https://git.unvec.site/stevenhobs/lazyzsh ~/.lazyzsh
#引入配置
echo "source ~/.lazyzsh/lazy.zsh" >> ~/.zshrc
```
你可以修改`init_plugins.zsh`开头内容以禁用某些插件。
@@ -53,16 +56,3 @@ zsh ~/.lazyzsh/x_add_cli.zsh
- fd
- bat
- aichat
## 其他
- wsl2 关闭 Win 防火墙拦截用于放行Wsl对windows宿主机的代理请求
PowerShell 管理远模式打开 根据自己的 WSL 网卡类型执行
```powershell
# 网卡 vEthernet (WSL (Hyper-V firewall))
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL (Hyper-V firewall))" -Action Allow
# 网卡 vEthernet (WSL)
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow
```