Files
FWS-ISO/configs/releng/airootfs/etc/profile.d/fastfetch.sh
T
BlackAngelTV 21e0c32427 feat(fastfetch): show the FWS logo whatever launches fastfetch
The FWS logo only came from the flags passed by the login-shell hook, so
running fastfetch from a desktop terminal, a TTY or any non-login shell fell
back to the Arch logo. Move the logo (and its colours) into a system-wide
config that fastfetch reads for every account, live or installed, and keep the
hook down to a plain call. The module list is left to fastfetch defaults so it
does not rot with upstream versions; a user's own config still wins.
2026-10-29 20:42:04 +01:00

13 lines
605 B
Bash

#!/usr/bin/env bash
# NB : ce fichier est SOURCÉ par le shell de login (zsh sur le live), pas exécuté
# → le shebang est ignoré. En zsh « status » est une variable spéciale EN LECTURE
# SEULE (alias de $?) : s'y affecter casse (« read-only variable: status »).
# On utilise donc un autre nom.
_fastfetch_rc=$?
if [ "${_fastfetch_rc}" -eq 0 ]; then
# Le logo FWS vient de la config SYSTÈME (/etc/fastfetch/config.jsonc) :
# aucun flag ici, pour que le rendu soit identique quand fastfetch est
# lancé à la main (terminal d'un bureau, TTY, n'importe quel compte).
fastfetch
fi