feat: persist global pwsh profiles (#2702)

This commit is contained in:
Janic Mikes 2021-09-25 08:26:39 +02:00 committed by GitHub
parent 623d432c1e
commit c62987b454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,14 @@
"hash": "b44702f129514e638798d62a6f3eacb62ef8a628052f71f1ceed179ede3d4564"
}
},
"pre_install": [
"if (!(Test-Path \"$persist_dir\\profile.ps1\")) {",
" New-Item -ItemType File \"$persist_dir\\profile.ps1\" | Out-Null",
"}",
"if (!(Test-Path \"$persist_dir\\Microsoft.PowerShell_profile.ps1\")) {",
" New-Item -ItemType File \"$persist_dir\\Microsoft.PowerShell_profile.ps1\" | Out-Null",
"}"
],
"bin": "pwsh.exe",
"shortcuts": [
[
@ -20,6 +28,10 @@
"PowerShell Core"
]
],
"persist": [
"profile.ps1",
"Microsoft.PowerShell_profile.ps1"
],
"checkver": "github",
"autoupdate": {
"architecture": {