下载安装 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