This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # proxy | |
| function Set-Proxy { | |
| param([string]$ProxyUri = 'http://localhost:7890') | |
| [System.Net.WebRequest]::DefaultWebProxy = [System.Net.WebProxy]::new($ProxyUri) | |
| $ENV:HTTP_PROXY = $ProxyUri | |
| $ENV:HTTPS_PROXY = $ProxyUri | |
| $ENV:http_proxy = $ProxyUri | |
| $ENV:https_proxy = $ProxyUri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$help": "https://aka.ms/terminal-documentation", | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "actions": [], | |
| "copyFormatting": "none", | |
| "copyOnSelect": false, | |
| "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
| "keybindings": [ | |
| { | |
| "id": "Terminal.CopyToClipboard", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 以下设置默认为更改值,需要保持默认注释掉配置项即可 | |
| # Settings apply across all Linux distros running on WSL 2 | |
| [wsl2] | |
| # Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB | |
| memory=4GB | |
| # Sets the VM to use two virtual processors | |
| processors=2 |