diff --git a/configs/wsl_user_git.json b/configs/wsl_user_git.json new file mode 100644 index 0000000..fac83e3 --- /dev/null +++ b/configs/wsl_user_git.json @@ -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" + ] + } + ] +} diff --git a/configs/wsl_user_npm.json b/configs/wsl_user_npm.json new file mode 100644 index 0000000..485b0c0 --- /dev/null +++ b/configs/wsl_user_npm.json @@ -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" + ] + } + ] +} diff --git a/configs/wsl_user_pip.json b/configs/wsl_user_pip.json new file mode 100644 index 0000000..7059580 --- /dev/null +++ b/configs/wsl_user_pip.json @@ -0,0 +1,22 @@ +{ + "name": "WSL - User - Pip", + "cmd": "wsl pip", + "set": [ + { + "args": [ + "config", + "set", + "global.proxy" + ] + } + ], + "unset": [ + { + "args": [ + "config", + "unset", + "global.proxy" + ] + } + ] +}