From 102d17d3bdd9b88886dd8c82c021850db038799d Mon Sep 17 00:00:00 2001 From: whoami Date: Mon, 27 May 2024 15:35:33 +0800 Subject: [PATCH] commit --- git-path-setup.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 git-path-setup.md diff --git a/git-path-setup.md b/git-path-setup.md new file mode 100644 index 0000000..84120cb --- /dev/null +++ b/git-path-setup.md @@ -0,0 +1,24 @@ +创建一个 ps1 脚本: + +```powershell +Set-PSReadlineOption -HistorySaveStyle SaveNothing +$env:path+='(redacted)/git/cmd;(redacted)/python' +``` + +修改 settings.json: + +```json +"args": [ + "-ExecutionPolicy", + "remotesigned", + "-NoExit", + "(redacted)/vscode/data/user-data/User/profile.ps1" +] +``` + +在 py 目录中做以下更改: + +```text +python.exe -> py.exe (防止 powershell 跳转到 ms store) ++ sqrtools.pyc +``` \ No newline at end of file