diff --git a/configs.json b/configs.json deleted file mode 100644 index 7485545..0000000 --- a/configs.json +++ /dev/null @@ -1,104 +0,0 @@ -[ - { - "name": "env", - "cmd": "[System.Environment]::SetEnvironmentVariable('$PRSW_ARG', $PRSW_ARG, 'User')", - "set": [ - { - "args": [ - "http_proxy" - ], - "surround": "\"", - "type": "variable" - }, { - "args": [ - "https_proxy" - ], - "surround": "\"", - "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" - ] - } - ] - } -] diff --git a/configs/env.json b/configs/env.json new file mode 100644 index 0000000..387d347 --- /dev/null +++ b/configs/env.json @@ -0,0 +1,34 @@ +{ + "name": "env", + "cmd": "[System.Environment]::SetEnvironmentVariable('$PRSW_ARG', $PRSW_ARG, 'User')", + "set": [ + { + "args": [ + "http_proxy" + ], + "surround": "\"", + "type": "variable" + }, { + "args": [ + "https_proxy" + ], + "surround": "\"", + "type": "variable" + } + ], + "unset": [ + { + "args": [ + "http_proxy", + "[NullString]::Value" + ], + "type": "variable" + }, { + "args": [ + "https_proxy", + "[NullString]::Value" + ], + "type": "variable" + } + ] +} diff --git a/configs/git.json b/configs/git.json new file mode 100644 index 0000000..bca4d6e --- /dev/null +++ b/configs/git.json @@ -0,0 +1,35 @@ +{ + "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" + ] + } + ] +} diff --git a/configs/npm.json b/configs/npm.json new file mode 100644 index 0000000..24501c9 --- /dev/null +++ b/configs/npm.json @@ -0,0 +1,35 @@ +{ + "name": "npm", + "set": [ + { + "args": [ + "config", + "set", + "proxy" + ], + "equator": "=" + }, { + "args": [ + "config", + "set", + "https-proxy" + ], + "equator": "=" + } + ], + "unset": [ + { + "args": [ + "config", + "delete", + "proxy" + ] + }, { + "args": [ + "config", + "delete", + "https-proxy" + ] + } + ] +}