Themes | Oh My Posh,格式就按照xxx.omp.json(同路径下的文件名)就可以。 最后按esc,输入:wq!就可以保存了。 重启终端,效果图如图。 如果你出现了 这样的情况,上面有个CONFIG ERROR字样,就说明你配置位置 出现了问题,极大可能是路径问题,CONFIG ERROR · JanDeDobbeleer/oh-my-posh · Discussion #3412 (gi...
1、oh-my-posh已经不再支持PowerShell module,我们可以在官网看见这个标签页已经入土了 进棺材了哈哈好似喵 2、配置完了以后不显示conda环境名称: 这个主要是由于配置问题,查看你的.opm.json文件,找到segments中type为python的那个部分,我们可以看到几个常见的元凶,让你无法看到你的conda环境,即使你已经配好了: "...
my-posh Config path: C:\Users\User\AppData\Local\Programs\oh-my-posh\themes\1_shell.omp.json Logs: [DEBUG] 17:19:41.751 command.go:execute:989 → debug mode enabled [DEBUG] 17:19:41.752 debug.go:40 → config set using POSH_THEME: C:\Users\User\AppData\Local\Programs\oh-my-posh\...
输入如下命令: oh-my-poshinitpwsh--config"$env:POSH_THEMES_PATH/jandedobbeleer.omp.json"|Invoke-Expression 这意味着每次启动 PowerShell 时,都会自动执行上述命令。该命令中引用的 JSON 文件是 Oh My Posh 的主题配置文件。 Oh My Posh 内置了众多主题,大家可以根据个人偏好选择喜爱的一款。如果想浏览所有...
cache Interact with the oh-my-posh cache completion Generate the autocompletion script for the specified shell config Interact with the config debug Print the prompt in debug mode 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. ...
(false) - 0 ms Run duration: 35.6118ms Cache path: C:\Users\jgj.it\AppData\Local\oh-my-posh Config path: C:\Users\jgj.it\OneDrive - CBS - Copenhagen Business School\PoshTheme\montys_jgj.omp.json Logs: [DEBUG] 15:32:13.029 shell.go:Getenv:392  NO DATA [TRACE] ...
配置启动时加载 oh-my-posh 创建powershell 配置文件: if(!(Test-Path -Path$PROFILE)) { New-Item -Type File -Path$PROFILE-Force } 用记事本打开配置文件 notepad$PROFILE 在记事本中录入以下指令 oh-my-posh init pwsh --config ~/.leon.omp.theme.json | Invoke-Expression ...
oh my posh安装(新版powerShell7(pwsh)和旧版的powershell以及不同的oh my posh),程序员大本营,技术文章内容聚合第一站。
官方:https://ohmyposh.dev/ git 地址:https://github.com/jandedobbeleer/oh-my-posh winget install oh-my-posh 以上命令会安装 oh-my-posh.exe 以及最新的主题。 安装Nerd Fonts oh-my-posh 的不少主题都是依赖于该字体,否则部分 icon 会乱码,建议安装。
oh-my-posh官网推荐的几种下载方式分别为winget, scoop, manual。winget通过github下载,放弃;scoop需要额外安装,不确定是否可用;这里选择manual安装。 官网提供的install.ps1文件中包含github链接,需要修改。因此自行修改了install.ps1的脚本内容,放在仓库中使用。 不知道gitee怎么生成latest链接,目前固定指向V12.5版本。