0
0
test/note/git-path-setup.md
2024-05-27 15:44:06 +08:00

24 lines
439 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

创建一个 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
```