zoukankan      html  css  js  c++  java
  • 美化terminal时碰到的问题- Set-Theme

    报错:

    1  Set-Theme Set-Theme: The term 'Set-Theme' 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.

     卡在了无法设置主题这里

    突破点是找到一个帖子中:https://blog.csdn.net/qq_35067322/article/details/107031921里说可以列出样式。

    C:UsersQiuDesktop> Get-Theme
    
    Hi there!
    
    It seems you're using an oh-my-posh V2 cmdlet while running V3.
    To migrate your current setup to V3, have a look the documentation.
    
    https://ohmyposh.dev/docs/upgrading
    
    C:UsersQiuDesktop> Update-Module -Name oh-my-posh -AllowPrerelease -Scope CurrentUser
    C:UsersQiuDesktop> Set-Theme Agnoster
    Set-Theme: The term 'Set-Theme' 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.

    然后就看到上面这段,大概意思是版本不兼容(为什么没看到别人出现该情况呜呜呜/(ㄒoㄒ)/~~)

    打开网站: https://ohmyposh.dev/docs/upgrading

    更新下自己的oh-my-posh:Update-Module -Name oh-my-posh -AllowPrerelease -Scope CurrentUser

    发现使用set-theme也是不行,

    官方是使用 Get-PoshThemes 查看支持主题;Set-PoshPrompt paradox 设置主题。

     

    over~

     

  • 相关阅读:
    VM虚拟机Linux和主机数据传输
    Linux CentOS 虚拟机下联网
    SQL 注入漏洞
    BurpSuite 各模块使用
    御剑指纹识别
    C#数组2(多维数组)
    C#数组1
    C#简单的枚举及结构
    ABAP性能1 | LOOP嵌套LOOP代码分析 (转)
    占位符使用(竖式计算)
  • 原文地址:https://www.cnblogs.com/foe0/p/14429464.html
Copyright © 2011-2022 走看看