add configs for linux settings under WSL

This commit is contained in:
Baipyrus 2024-11-07 20:00:00 +01:00
parent 921c015618
commit 9370ff1bc1
3 changed files with 94 additions and 0 deletions

36
configs/wsl_user_git.json Normal file
View File

@ -0,0 +1,36 @@
{
"name": "WSL - User - Git",
"cmd": "wsl git",
"set": [
{
"args": [
"config",
"--global",
"http.proxy"
]
}, {
"args": [
"config",
"--global",
"https.proxy"
]
}
],
"unset": [
{
"args": [
"config",
"--global",
"--unset",
"http.proxy"
]
}, {
"args": [
"config",
"--global",
"--unset",
"https.proxy"
]
}
]
}

36
configs/wsl_user_npm.json Normal file
View File

@ -0,0 +1,36 @@
{
"name": "WSL - User - NPM",
"cmd": "wsl npm",
"set": [
{
"args": [
"config",
"set",
"proxy"
],
"equator": "="
}, {
"args": [
"config",
"set",
"https-proxy"
],
"equator": "="
}
],
"unset": [
{
"args": [
"config",
"delete",
"proxy"
]
}, {
"args": [
"config",
"delete",
"https-proxy"
]
}
]
}

22
configs/wsl_user_pip.json Normal file
View File

@ -0,0 +1,22 @@
{
"name": "WSL - User - Pip",
"cmd": "wsl pip",
"set": [
{
"args": [
"config",
"set",
"global.proxy"
]
}
],
"unset": [
{
"args": [
"config",
"unset",
"global.proxy"
]
}
]
}