Browse Source

fix(installer): use quotes in set-alias (#3408)

Tommy Au 2 năm trước cách đây
mục cha
commit
f0ed89d17c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      utils/installer/install.ps1

+ 1 - 1
utils/installer/install.ps1

@@ -271,7 +271,7 @@ function create_alias {
         New-Item -Path $PROFILE -ItemType "file" -Force
     }
 
-    Add-Content -Path $PROFILE -Value $("`r`nSet-Alias lvim $lvim_bin")
+    Add-Content -Path $PROFILE -Value $("`r`nSet-Alias lvim '$lvim_bin'")
 
     Write-Host 'To use the new alias in this window reload your profile with: `. $PROFILE`' -ForegroundColor Green
 }