From c209f8d2bef97302f07bd83583ffb8eb8ea874b9 Mon Sep 17 00:00:00 2001 From: reonokiy Date: Sat, 3 May 2025 12:44:35 +0800 Subject: [PATCH] add fnm --- Documents/PowerShell/Microsoft.PowerShell_profile.ps1.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documents/PowerShell/Microsoft.PowerShell_profile.ps1.tmpl b/Documents/PowerShell/Microsoft.PowerShell_profile.ps1.tmpl index 2e9a761..fe181b1 100644 --- a/Documents/PowerShell/Microsoft.PowerShell_profile.ps1.tmpl +++ b/Documents/PowerShell/Microsoft.PowerShell_profile.ps1.tmpl @@ -3,6 +3,11 @@ if (Get-Command starship -ErrorAction SilentlyContinue) { Invoke-Expression (&starship init powershell) } +# fnm +if (Get-Command fnm -ErrorAction SilentlyContinue) { + fnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression +} + # micromamba if (Get-Command micromamba -ErrorAction SilentlyContinue) { $Env:MAMBA_ROOT_PREFIX = "{{ .chezmoi.homeDir }}/.micromamba"