windows terminal ConEmu + Posh-Git,Oh-My-Posh
May 27, 2021
快速的紀錄一下conemu terminal 在windows上的安裝與使用。首先,先安裝 conemu(https://conemu.github.io/),打開powershell並安裝下列兩個powershell 的module(posh-git, oh-my-posh)。
Install-Module posh-git
Install-Module oh-my-posh
安裝好後同樣在powershell內下 $profile 指令,找到你的 powershell profile 位置,將下列三行貼入存檔(沒有檔案就自己建立一個相同檔名的吧!)。
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme aliens //設定你要的主題
主題列表 : https://ohmyposh.dev/docs/themes
最後,字體同樣也是可以設定的,選定你喜歡的字體就完成拉。
字體下載位置
https://github.com/powerline/fonts.git
https://www.nerdfonts.com/
總結
- 安裝 ConEmu
- 安裝 posh-git, oh-my-posh 兩個powershell module
- 選定你要的主題並將三行設定貼入 Microsoft.PowerShell_profile.ps1內
- 設定你要的字體