mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-12-22 07:11:33 +00:00
cheat: Fix install (#4043)
This commit is contained in:
parent
fc2f4bd029
commit
4f755d794e
@ -14,8 +14,7 @@
|
||||
"$file = 'conf.yml'",
|
||||
"if (!(Test-Path \"$persist_dir\\$file\")) {",
|
||||
" Write-Host 'File' $file 'does not exists. Creating.' -f Yellow",
|
||||
" $CONT = $(& \"$dir\\cheat\" --init) -replace 'editor: vim', 'editor: notepad' -replace 'cheatsheets/', \"$persist_dir/cheatsheets/\"",
|
||||
" Set-Content \"$dir\\$file\" ($CONT -replace '\\\\', '/') -Encoding ASCII",
|
||||
" New-Item -ItemType File -Force -Path \"$dir\\$file\" | Out-Null",
|
||||
"}",
|
||||
"if (!(Test-Path \"$persist_dir\\cheatsheets\")) {",
|
||||
" Write-Host 'Adding community cheatsheets...' -f Yellow",
|
||||
@ -23,6 +22,11 @@
|
||||
" git clone -q 'https://github.com/cheat/cheatsheets.git' \"$persist_dir\\cheatsheets\\community\"",
|
||||
"}"
|
||||
],
|
||||
"post_install": [
|
||||
"$file = 'conf.yml'",
|
||||
"$CONT = $(& \"$dir\\cheat\" --init) -replace 'editor: EDITOR_PATH', 'editor: notepad' -replace 'pager: PAGER_PATH', 'pager: more'",
|
||||
"Set-Content \"$dir\\$file\" $CONT -Encoding ASCII"
|
||||
],
|
||||
"env_set": {
|
||||
"CHEAT_CONFIG_PATH": "$dir\\conf.yml"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user