Scoop

优雅的使用是学习的开始

当我拿到全新的电脑时

powershell

执行:

notepad $PORFILE

$OutputEncoding = [Console]::OutputEncoding = [Text.Encoding]::UTF8
$env:HTTP_PROXY = "<http://127.0.0.1:10809>"
$env:HTTPS_PROXY = "<http://127.0.0.1:10809>"

Set-PSReadLineKeyHandler -Key Tab -Function AcceptSuggestion
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function MenuComplete
# 上下方向键箭头,搜索历史中进行自动补全
Import-Module posh-git # git的自动补全

oh-my-posh init pwsh --config ~/bubbles.omp.json | Invoke-Expression

美化

https://ohmyposh.dev/docs/migrating