The term ‘oh-my-posh‘ is not recognized as a name of a cmdlet, function, script file...

image-20220204153621062

The term ‘oh-my-posh’ is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

  1. 找到你安装 oh-my-posh 的路径

    比如我的是:C:\Users\当前用户名\AppData\Local\oh-my-posh

  2. 设置环境变量

    image-20220204160746474

    添加 oh-my-posh 的路径

    image-20220204160822558


版权声明:本文为weixin_45397995原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。