Skip to content

Commit 0651d03

Browse files
committed
feat(profile): 添加 fnm(快速跨平台 Node 版本管理器)
- 在 installApp.ps1 中添加 fnm 的安装配置 - 在 profile.ps1 中添加 fnm 的环境变量设置
1 parent 4925100 commit 0651d03

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

profile/installer/installApp.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ $installListMap = @{
4848
# @{
4949
# name = 'nvm'
5050
# cliName = 'nvm'
51-
# },
51+
# }
52+
@{
53+
name = 'fnm'
54+
cliName = 'fnm'
55+
description = 'nvm的rust替代,跨平台node版本管理'
56+
},
5257
@{
5358
name = 'git'
5459
},

profile/profile.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ $tools = @{
5151
# 设置sccache用于rust编译缓存,提高新启动项目的编译速度
5252
$Env:RUSTC_WRAPPER = 'sccache'
5353
}
54-
zoxide = { Invoke-Expression (& { (zoxide init powershell | Out-String) }) }
54+
zoxide = { Invoke-Expression (& { (zoxide init powershell | Out-String) })
55+
}
56+
fnm = { fnm env --use-on-cd | Out-String | Invoke-Expression }
5557
}
5658

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

0 commit comments

Comments
 (0)