summaryrefslogtreecommitdiff
path: root/utils/installer/install.ps1
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-08-29 14:35:15 +0200
committerkylo252 <[email protected]>2022-08-29 14:35:15 +0200
commit439e0c205a4c09545f08816ab5100fb5d9a93d3b (patch)
tree4d3767b7e921dd707fe859b98bbaa5081fce205c /utils/installer/install.ps1
parent47e4e5b83808f784010aa480753beaaef16ac579 (diff)
parentdf84e4ecce5a7c8838fd21d5de939128f3214ef4 (diff)
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'utils/installer/install.ps1')
-rw-r--r--utils/installer/install.ps17
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/installer/install.ps1 b/utils/installer/install.ps1
index dcfa47f4..320e377c 100644
--- a/utils/installer/install.ps1
+++ b/utils/installer/install.ps1
@@ -264,6 +264,13 @@ function create_alias {
return
}
+ try {
+ Get-Content $PROFILE -ErrorAction Stop
+ }
+ catch {
+ New-Item -Path $PROFILE -ItemType "file" -Force
+ }
+
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