目录

Windows Terminal + oh-my-posh 终端环境

Scoop

scoop bucket add extras
scoop install windows-terminal

winget

winget install --id Microsoft.WindowsTerminal -e
  • 如果都无法安装可以进入这里下载:https://github.com/microsoft/terminal/releases

Scoop

scoop install https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/oh-my-posh.json

winget

winget install JanDeDobbeleer.OhMyPosh -s winget
  • 如果都无法安装可以进入这里下载:https://ohmyposh.dev/docs/installation/windows

  • 安装 ryanoasis/nerd-fonts 字体

    • 请进入这里下载:https://github.com/ryanoasis/nerd-fonts
  • 设置 > 默认值 > 外观 > 字体

这里我分享 6 个我比较喜欢的.

  • 1)aliens

aliens

  • 2)amro

amro

  • 3)emodipt-extend

emodipt-extend

  • 4)montys

montys

  • 5)stelbent-compact

stelbent-compact.minimal

  • 6)slimfat

slimfat

  • 在终端输入
    • $env:POSH_THEMES_PATH\aliens.omp.json:后面的 aliens 就是你的主题名字
oh-my-posh init pwsh --config $env:POSH_THEMES_PATH\aliens.omp.json | Invoke-Expression
# 创建配置文件
$ New-Item -Path $PROFILE -Type File -Force

# 编辑配置文件
$ notepad $PROFILE

# 输入设置
oh-my-posh init pwsh --config $env:POSH_THEMES_PATH\slimfat.omp.json | Invoke-Expression