下載安裝 Chocolateygit
安裝 PsGet,在 PowerShell 中輸入:github
(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex
在 PowerShell 中,用PsGet
安裝posh-git
和oh-my-posh
spa
Install-Module posh-git Install-Module oh-my-posh
設置oh-my-posh
主題.net
Set-Theme paradox
建立 PowerShell 配置文件code
Test-path $profile //如顯示false,使用如下命令手動建立 New-item –type file –force $profile //如顯示true,使用如下命令打開配置文件編輯 Notepad $profile //在配置文件中加入 oh-my-posh 主題設置 Set-Theme Honukai //保存關閉,重啓PowerShell
效果圖get
全部軟件連接cmd
Chocolatey
PsGet
Oh-My-Posh
Posh-Gitit
PS: 想省事懶得搗鼓, 直接安裝Cmder
http://cmder.net/class