mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-03 07:11:21 +00:00
bat: Persist configs (#6422)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
This commit is contained in:
parent
458c85e82d
commit
7e2e4d7b4a
@ -19,6 +19,25 @@
|
||||
"extract_dir": "bat-v0.24.0-i686-pc-windows-msvc"
|
||||
}
|
||||
},
|
||||
"pre_install": [
|
||||
"if (!(Test-Path \"$persist_dir\\config\")) {",
|
||||
" Copy-Item -ErrorAction Ignore \"$env:APPDATA\\bat\\config\" \"$dir\\config\"",
|
||||
" New-Item -ErrorAction Ignore \"$dir\\config\" | Out-Null",
|
||||
"}",
|
||||
"'syntaxes', 'themes' | ForEach-Object {",
|
||||
" if (!(Test-Path \"$persist_dir\\$_\")) {",
|
||||
" Copy-Item -ErrorAction Ignore -Recurse \"$env:APPDATA\\bat\\$_\" \"$dir\\$_\"",
|
||||
" }",
|
||||
"}"
|
||||
],
|
||||
"env_set": {
|
||||
"BAT_CONFIG_DIR": "$dir"
|
||||
},
|
||||
"persist": [
|
||||
"config",
|
||||
"syntaxes",
|
||||
"themes"
|
||||
],
|
||||
"bin": "bat.exe",
|
||||
"checkver": "github",
|
||||
"autoupdate": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user