Oh-My-Posh Powershell 配置方法
目录
介绍
oh-my-posh 是一个命令行美化工具。
安装和启动
- 安装脚本。见 https://ohmyposh.dev/docs/installation/windows
- 安装字体。oh-my-posh 基于 Nerds Font 字体,因此我们需要安装它,否则就会出现奇怪的 ? 字符。安装方法见 https://ohmyposh.dev/docs/installation/fonts
- 设置启动。启动命令
oh-my-posh init pwsh | Invoke-Expression,如果要打开启动则需要将其写入一个。详情见 https://ohmyposh.dev/docs/installation/prompt - 选择一个主题。见 https://ohmyposh.dev/docs/themes 和 https://ohmyposh.dev/docs/installation/customize 。
oh-my-posh init pwsh --config 'C:/Users/Posh/jandedobbeleer.omp.json' | Invoke-Expression