Compare commits

..

3 Commits

11 changed files with 230 additions and 4 deletions

View File

@ -1,5 +1,5 @@
{ {
"name": "env", "name": "WIN - Env",
"cmd": "[System.Environment]::SetEnvironmentVariable('$PRSW_ARG', $PRSW_ARG, 'User')", "cmd": "[System.Environment]::SetEnvironmentVariable('$PRSW_ARG', $PRSW_ARG, 'User')",
"set": [ "set": [
{ {

View File

@ -1,5 +1,6 @@
{ {
"name": "git", "name": "WIN - Git",
"cmd": "git",
"set": [ "set": [
{ {
"args": [ "args": [

View File

@ -1,5 +1,6 @@
{ {
"name": "npm", "name": "WIN - NPM",
"cmd": "npm",
"set": [ "set": [
{ {
"args": [ "args": [

View File

@ -1,5 +1,6 @@
{ {
"name": "pip", "name": "WIN - Pip",
"cmd": "pip",
"set": [ "set": [
{ {
"args": [ "args": [

35
configs/wsl_sudo_env.json Normal file
View File

@ -0,0 +1,35 @@
{
"name": "WSL - Sudo - Env",
"cmd": "wsl sudo",
"set": [
{
"args": [
"tee",
"-a",
"/etc/environment",
"\"<<<\"",
"http_proxy"
],
"equator": "="
}, {
"args": [
"tee",
"-a",
"/etc/environment",
"\"<<<\"",
"https_proxy"
],
"equator": "="
}
],
"unset": [
{
"args": [
"sed",
"-i",
"'''/^https\\?_proxy=.*$/d'''",
"/etc/environment"
]
}
]
}

36
configs/wsl_sudo_git.json Normal file
View File

@ -0,0 +1,36 @@
{
"name": "WSL - Sudo - Git",
"cmd": "wsl sudo 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_sudo_npm.json Normal file
View File

@ -0,0 +1,36 @@
{
"name": "WSL - Sudo - NPM",
"cmd": "wsl sudo 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_sudo_pip.json Normal file
View File

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

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"
]
}
]
}