Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[FEAT] Configurable or environment-based logos

Đang mở
#2,194 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c, shell
Lĩnh vực
cli, operating-systems

Hướng nghiên cứu

Bắt đầu bằng cách đọc entry point tự động phát hiện logo và cấu hình command module được đề cập trong issue, sau đó so sánh chúng với cấu hình custom module hiện có. Xác định cách một override dựa trên môi trường hoặc lệnh sẽ fallback về quá trình phát hiện thông thường, và xem các ví dụ về MSYS2 và FreeBSD là các trường hợp chấp nhận.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
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

Ngôn ngữ chính
C
Star
24.7k
Fork
895
Merge trung bình
22 giờ 43 phút
Pull request đã merge (30 ngày)
20

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của fastfetch-cli/fastfetch

Tất cả issue của fastfetch-cli/fastfetch

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.