aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-05-28 01:37:40 +0200
committersrdusr <trevorgray@srdusr.com>2024-05-28 01:37:40 +0200
commit5c91895df1a8f1ad0b95a9b75ec2a84e576772a9 (patch)
tree4902637245c5681c3e5f1d626aee1837c21d7014 /.config
parentc464f80112a2f1a9ca973904e5f05df916e7d72e (diff)
downloaddotfiles-5c91895df1a8f1ad0b95a9b75ec2a84e576772a9.tar.gz
dotfiles-5c91895df1a8f1ad0b95a9b75ec2a84e576772a9.zip
Check if nvm is installed
Diffstat (limited to '.config')
-rw-r--r--.config/powershell/bootstrap.ps15
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/powershell/bootstrap.ps1 b/.config/powershell/bootstrap.ps1
index df0af1c..601fcc6 100644
--- a/.config/powershell/bootstrap.ps1
+++ b/.config/powershell/bootstrap.ps1
@@ -52,6 +52,11 @@ Update-EnvironmentVariables
Write-Host "Profile registry paths, environment variables, and user profile directory have been updated. Please reboot the system."
+# Function to check if NVM is installed
+function Test-NVMInstalled {
+ $nvmPath = "$env:USERPROFILE\AppData\Roaming\nvm\nvm.exe"
+ return Test-Path -Path $nvmPath
+}
# Install NVM if not installed
Write-Host "Configuring NVM"