Skip to content

Commit 14e9b93

Browse files
committed
refactor(profile): 注释掉 Windows 上的 fnm 配置
原因: - 在 Windows 上使用 fnm 比较麻烦 - fnm 环境变量还需要在其他环境中配置(如 husky 的 git bash 和 npm 使用的 cmd)
1 parent 4169132 commit 14e9b93

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

profile/profile.ps1

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,12 @@ function Init-Environment {
103103
Write-Verbose "初始化zoxide目录跳转工具"
104104
Invoke-Expression (& { (zoxide init powershell | Out-String) })
105105
}
106-
fnm = {
107-
Write-Verbose "初始化fnm Node.js版本管理器"
108-
fnm env --use-on-cd | Out-String | Invoke-Expression
109-
}
106+
# 在windows上使用比nvm麻烦很多,,所以不用了
107+
# 这个环境变量还需要在husky的git bash,npm使用的cmd里配置
108+
# fnm = {
109+
# Write-Verbose "初始化fnm Node.js版本管理器"
110+
# fnm env --use-on-cd | Out-String | Invoke-Expression
111+
# }
110112
}
111113

112114
foreach ($tool in $tools.GetEnumerator()) {

0 commit comments

Comments
 (0)