Oh-My-Posh Powershell 配置方法

介绍

oh-my-posh 是一个命令行美化工具。

安装和启动

  1. 安装脚本。见 https://ohmyposh.dev/docs/installation/windows
  2. 安装字体。oh-my-posh 基于 Nerds Font 字体,因此我们需要安装它,否则就会出现奇怪的 ? 字符。安装方法见 https://ohmyposh.dev/docs/installation/fonts
  3. 设置启动。启动命令 oh-my-posh init pwsh | Invoke-Expression,如果要打开启动则需要将其写入一个。详情见 https://ohmyposh.dev/docs/installation/prompt
  4. 选择一个主题。见 https://ohmyposh.dev/docs/themeshttps://ohmyposh.dev/docs/installation/customizeoh-my-posh init pwsh --config 'C:/Users/Posh/jandedobbeleer.omp.json' | Invoke-Expression
0%