Oh My Posh+Clink终端美化配置指南

213 字
1 分钟
Oh My Posh+Clink终端美化配置指南

ohmyposh+clink终端美化教程#

配置过程可参考开源免费软件分享0031——oh-my-posh+clink

详细对于终端的配置可以查看官方文档

Img
Img

针对在cmd中’oh-my-posh’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。

可以使用绝对路径的配置

Terminal window
-- 初始化 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

Img
Img

使用的字体:JetBrainsMonoNerdFont-Italic 在我计算机位置:"H:\workspaces\terminalbeauty\JetBrainsMono\JetBrainsMonoNerdFont-Italic.ttf"

同时可以修改cursor/vscode中的终端配置

  1. 首先ctrl + shift + p打开命令面板,搜索工作区

    Img
    Img

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

    Img
    Img
    Img
    Img

  3. 也可以修改font

    Img
    Img

支持与分享

如果这篇文章对你有帮助,欢迎分享给更多人或打赏支持!

打赏
Oh My Posh+Clink终端美化配置指南
https://firefly.cuteleaf.cn/posts/ohmyposhclink终端美化教程/
作者
陌离
发布于
2025-01-18
许可协议
CC BY-NC-SA 4.0

评论区

Profile Image of the Author
陌离
A long way to go——还差的远!
公告
欢迎来到我的博客!这是一则示例公告。
分类
标签
最新动态
站点统计
文章
44
分类
6
标签
111
总字数
69,388
运行时长
0
最后活动
0 天前
站点信息
构建平台
Vercel
博客版本
Firefly v6.15.6
文章许可
CC BY-NC-SA 4.0