From 9370ff1bc141412bdd18ba349d2968c9fcaae12a Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 7 Nov 2024 20:00:00 +0100 Subject: [PATCH] add configs for linux settings under WSL --- configs/wsl_user_git.json | 36 ++++++++++++++++++++++++++++++++++++ configs/wsl_user_npm.json | 36 ++++++++++++++++++++++++++++++++++++ configs/wsl_user_pip.json | 22 ++++++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 configs/wsl_user_git.json create mode 100644 configs/wsl_user_npm.json create mode 100644 configs/wsl_user_pip.json 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" + ] + } + ] +}