Oh My Posh powershell 顯示亂碼

Posted by Kuihao on 2022-04-05
Estimated Reading Time 1 Minutes
Words 100 In Total
Viewed Times

Oh My Posh powershell 顯示亂碼

根據官方解法 Steps:

  1. 下載 Meslo LGM NF 字型

    Oh My Posh was designed to use Nerd Fonts. Nerd Fonts are popular fonts that are patched to include icons. We recommend Meslo LGM NF, but any Nerd Font should be compatible with the standard themes.

  2. 開啟 Winsdows Terminal 的 settings.json
    1
    2
  3. 將 powershell 的 font 底下的 face 改成 “Meslo LGM NF”
    3
  4. 儲存並關閉後,新開一個 powershell terminal 即可看見顯示恢復正常