tealdeer: Remove TEALDEER_CACHE_DIR environment variable (#3992)

This commit is contained in:
Cherno Chiu 2022-10-02 21:55:45 +08:00 committed by GitHub
parent d01ef9349d
commit 91aedf9203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,14 +15,14 @@
" Write-Host 'File' $file 'does not exists. Creating.' -f Yellow", " Write-Host 'File' $file 'does not exists. Creating.' -f Yellow",
" $CONT = @(", " $CONT = @(",
" '[directories]'", " '[directories]'",
" \"cache_dir = `\"$persist_dir\\cache`\"\"",
" \"custom_pages_dir = `\"$persist_dir\\custom-pages`\"\"", " \"custom_pages_dir = `\"$persist_dir\\custom-pages`\"\"",
" ) -replace '\\\\', '\\\\'", " ) -replace '\\\\', '\\\\'",
" Set-Content \"$dir\\$file\" ($CONT -join \"`r`n\") -Encoding ASCII", " Set-Content \"$dir\\$file\" ($CONT -join \"`r`n\") -Encoding ASCII",
"}" "}"
], ],
"env_set": { "env_set": {
"TEALDEER_CONFIG_DIR": "$dir", "TEALDEER_CONFIG_DIR": "$dir"
"TEALDEER_CACHE_DIR": "$dir\\cache"
}, },
"bin": "tldr.exe", "bin": "tldr.exe",
"persist": [ "persist": [