mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-07 17:21:20 +00:00
feat: persist global pwsh profiles (#2702)
This commit is contained in:
parent
623d432c1e
commit
c62987b454
@ -13,6 +13,14 @@
|
|||||||
"hash": "b44702f129514e638798d62a6f3eacb62ef8a628052f71f1ceed179ede3d4564"
|
"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",
|
"bin": "pwsh.exe",
|
||||||
"shortcuts": [
|
"shortcuts": [
|
||||||
[
|
[
|
||||||
@ -20,6 +28,10 @@
|
|||||||
"PowerShell Core"
|
"PowerShell Core"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
"persist": [
|
||||||
|
"profile.ps1",
|
||||||
|
"Microsoft.PowerShell_profile.ps1"
|
||||||
|
],
|
||||||
"checkver": "github",
|
"checkver": "github",
|
||||||
"autoupdate": {
|
"autoupdate": {
|
||||||
"architecture": {
|
"architecture": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user