From 06d9244e2cacfcee9ea962160729cfd698f7ed71 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 30 Aug 2024 17:08:58 +0200 Subject: [PATCH] initialize base config for env, git and npm proxy --- configs.json | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 configs.json diff --git a/configs.json b/configs.json new file mode 100644 index 0000000..d4f657c --- /dev/null +++ b/configs.json @@ -0,0 +1,102 @@ +[ + { + "name": "env", + "cmd": "[System.Environment]::SetEnvironmentVariable($ARG, $ARG, 'User')", + "set": [ + { + "args": [ + "http_proxy" + ], + "type": "variable" + }, { + "args": [ + "https_proxy" + ], + "type": "variable" + } + ], + "unset": [ + { + "args": [ + "http_proxy", + "[NullString]::Value" + ], + "type": "variable" + }, { + "args": [ + "https_proxy", + "[NullString]::Value" + ], + "type": "variable" + } + ] + }, { + "name": "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" + ] + } + ] + }, { + "name": "npm", + "set": [ + { + "args": [ + "config", + "set", + "proxy" + ], + "equator": "=" + }, { + "args": [ + "config", + "set", + "https-proxy" + ], + "equator": "=" + } + ], + "unset": [ + { + "args": [ + "config", + "delete", + "proxy" + ] + }, { + "args": [ + "config", + "delete", + "https-proxy" + ] + } + ] + } +]