双城之战
213 字
1 分钟
告别枯燥的 CMD:Oh My Posh + Clink 终端美化攻略
ohmyposh+clink终端美化教程
配置过程可参考开源免费软件分享0031——oh-my-posh+clink
详细对于终端的配置可以查看官方文档

针对在cmd中’oh-my-posh’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
可以使用绝对路径的配置
-- 初始化 oh-my-posh 并指定主题local oh_my_posh = io.popen([[H:/workspaces/terminalbeauty/oh-my-posh/bin/oh-my-posh.exe init cmd --config "H:/workspaces/terminalbeauty/oh-my-posh/themes/atomic.omp.json"]]):read("*a")load(oh_my_posh)()后面的--config是主题配置,详细路径在H:\workspaces\terminalbeauty\oh-my-posh\themes,在官方文档里面也同时有效果预览:https://ohmyposh.dev/docs/themes

使用的字体:JetBrainsMonoNerdFont-Italic
在我计算机位置:"H:\workspaces\terminalbeauty\JetBrainsMono\JetBrainsMonoNerdFont-Italic.ttf"
同时可以修改cursor/vscode中的终端配置
-
首先ctrl + shift + p打开命令面板,搜索工作区

Img -
有两种修改方式,一种是修改terminal下面的setting.jsons

Img 
Img -
也可以修改font

Img
支持与分享
如果这篇文章对你有帮助,欢迎分享给更多人或赞助支持!
告别枯燥的 CMD:Oh My Posh + Clink 终端美化攻略
https://firefly.cuteleaf.cn/posts/ohmyposhclink终端美化教程/ 最后更新于 2025-01-18,距今已过 348 天
部分内容可能已过时