DestinyHunter / DestinyHunter.github.io

Blog
https://DestinyHunter.cn
1 stars 0 forks source link

美化 PowerShell #26

Open DestinyHunter opened 5 years ago

DestinyHunter commented 5 years ago
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module windows-screenfetch -Scope CurrentUser

我的文档 WindowsPowerShell 目录创建 Microsoft.PowerShell_profile.ps1

Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Darkblood #主题
#$DefaultUser = 'Destiny'
Screenfetch