PowerShell 美化

  • 下載安裝 Chocolateygit

  • 安裝 PsGet,在 PowerShell 中輸入:github

    (new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex
  • 在 PowerShell 中,用PsGet安裝posh-gitoh-my-poshspa

    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

Cmder

相關文章
相關標籤/搜索