[FEAT] Configurable or environment-based logos
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- cli, operating-systems
调研方向
首先阅读 issue 中提到的 logo 自动检测入口点和 command module 配置,然后将它们与现有的 custom module 配置进行比较。定义基于环境或命令的 override 应如何回退到正常检测,并将 MSYS2 和 FreeBSD 的示例作为验收用例。
由索引模型根据 Issue 内容生成。
描述
Description
It would be nice to be able to be able to alter the logo based on certain environment factors. For example, I share most of my configs across Windows, MSYS2, FreeBSD, and a couple Linux boxes. For most of them (and every individual unique OS) this works and prints the OS logo. However commit 23bccc4 added an MSYS2 logo to the set, but this can only be printed by manually specifying it. Similarly, FreeBSD has a Linux emulation layer to help make some less portable software work.
For both of those cases, it would be nice if something made it possible to override the logo based on e.g. an environment variable check, or some other probing mechanism, or perhaps even just as a check that can be specified in the configuration, similar to how custom modules work.
For the configuration option, it could look something like:
"logo": {
// Run the specified command and use its output,
// fall back to normal auto detect behavior is output is empty
"detect": "if [ \"$MSYSTEM\" -ne \"\" ]; then echo Msys2 ; fi"
}
Motivation
The command module does not allow overriding the logo
Additional context
No response
- 主要语言
- C
- 星标
- 24.7k
- 派生
- 895
- 平均合并
- 22 小时 43 分钟
- 30 天内合并 PR
- 20
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fastfetch-cli/fastfetch 的其他 Issue
-
logo request
难度 1/5 1 小时以内 新手友好度 90/100
fastfetch-cli/fastfetch#2607 ·
维护者通常 1 天内回复
-
logo request
难度 2/5 1-3 小时 新手友好度 72/100
fastfetch-cli/fastfetch#2590 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
fastfetch-cli/fastfetch#2587 · 1 条评论 ·
维护者通常 1 天内回复
-
logo request
难度 2/5 1-3 小时 新手友好度 68/100
fastfetch-cli/fastfetch#2568 ·
维护者通常 1 天内回复
-
[LOGO] EnderOS未关闭logo request
难度 2/5 1-3 小时 新手友好度 72/100
fastfetch-cli/fastfetch#2556 ·
维护者通常 1 天内回复
查看 fastfetch-cli/fastfetch 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 90/100
BasedHardware/omi#19711 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
microsoft/ebpf-for-windows#5604 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
trezor/trezor-firmware#7985 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 2 天内回复