2023-01-01|閱讀時間 ‧ 約 2 分鐘

我的Powershell 初期設定

TAB自動補全指令,選單形式
Set-PSReadlineKeyHandler -Chord Tab -Function MenuComplete

安裝ohmyposh、icon、JanDeDobbeleer主題

Install-Module oh-my-posh -Scope CurrentUser -SkipPublisherCheck
Install-Module posh-git -Scope CurrentUser
Install-Module -Name Terminal-Icons -Repository PSGallery
winget install JanDeDobbeleer.OhMyPosh -s winget
winget upgrade JanDeDobbeleer.OhMyPosh -s winget
New-Item -Path $PROFILE -Type File -Force

$Profile內新增

oh-my-posh init pwsh | Invoke-Expression
分享至
成為作者繼續創作的動力吧!
從 Google News 追蹤更多 vocus 的最新精選內容從 Google News 追蹤更多 vocus 的最新精選內容

DeanZhong的沙龍 的其他內容

發表回應

成為會員 後即可發表留言
© 2024 vocus All rights reserved.