fastfetch-cli / fastfetch-cli/fastfetch
[FEAT] Configurable or environment-based logos
- Lingua principale
- C
- Stelle
- 24.6k
- Fork
- 890
- Merge medio
- 1g 4h
- PR unite (30g)
- 15
Descrizione
### 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:
```jsonc
"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_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia leggendo l’entry point per l’aut rilevamento del logo e la configurazione del command module menzionati nell’issue, quindi confrontali con la configurazione esistente del custom module. Definisci come un override basato sull’ambiente o su un comando debba ricadere sul rilevamento normale e considera gli esempi di MSYS2 e FreeBSD come casi di accettazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- c, shell
- Ambito
- cli, operating-systems
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100