0
点赞
收藏
分享

微信扫一扫

shell_powershell_oh my posh :扩展您的posh主题(extend/modify your themes)


文章目录

  • ​​official link​​
  • ​​extend/modify your theme​​
  • ​​大致的路径​​
  • ​​关于官方的方法​​

official link

访问速度可能较慢.
​​​official build-in themes(list / snapes)​​​​theme configuration settings manual​​​​upgrading from v2​​

extend/modify your theme

eg .我想使用内置的一个​​iterm2​​​主题,然而,他的第二个字段颜色过深,我希望将其调整为亮色的
现在我复刻原主题,并利用code(vscode)将副本打开,(您可以参考官网的字段介绍,也可以凭着经验来做一些基本的颜色修改
shell_powershell_oh my posh :扩展您的posh主题(extend/modify your themes)_powershell
可以看到,第二个segment背景被我调为浅色,路径部分看起来更加清晰了
shell_powershell_oh my posh :扩展您的posh主题(extend/modify your themes)_json_02

大致的路径

shell_powershell_oh my posh :扩展您的posh主题(extend/modify your themes)_字段_03

主题文件是json文件,预览一下:
shell_powershell_oh my posh :扩展您的posh主题(extend/modify your themes)_官网_04
shell_powershell_oh my posh :扩展您的posh主题(extend/modify your themes)_字段_05
(可选操作)可以建立一个css文件来时时预览您的颜色
shell_powershell_oh my posh :扩展您的posh主题(extend/modify your themes)_posh_06

可以看到,自定义主题进入了候选,成为了原主题的一个系列
shell_powershell_oh my posh :扩展您的posh主题(extend/modify your themes)_官网_07

关于官方的方法

官网中提到,可以通过​​export-poshTheme​​等操作来修改,但是对于复杂的主题,导出文件内容已经和源文件(.json)发生了变化,实践过程中容易报错


举报

相关推荐

0 条评论