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

This commit is contained in:
Tommy Au 2022-11-05 17:50:23 +08:00 committed by GitHub
parent 9aa9bce3bc
commit f0ed89d17c
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}