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
# Put it to $PROFILE | |
function prompt { | |
$path = Get-Location | |
$parts = $path.Path -split '\\' | |
# Extract drive letter and first folder | |
$drive = $parts[0] | |
$topFolder = if ($parts.Count -gt 1) { $parts[1] } else { "" } |
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
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) | |
choco install -y git.install python vscode docker-cli docker-compose powertoys cascadiacode microsoft-windows-terminal | |
python -m pip install ptpython |
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
# 清华源 | |
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple | |
# 或: | |
# 阿里源 | |
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ | |
# 腾讯源 | |
pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple | |
# 豆瓣源 | |
pip config set global.index-url http://pypi.douban.com/simple/ |
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
{ | |
"editor.rulers": [80, 120], | |
"files.autoSave": "onFocusChange", | |
"files.exclude": { | |
"**/*.idea": true, | |
"**/*.pyc": true, | |
".vscode": true | |
}, | |
"files.trimTrailingWhitespace": true, | |
"workbench.activityBar.visible": true, |