From c9ac952553f96b01a6fe887e864dba81b99fc4b8 Mon Sep 17 00:00:00 2001 From: rootiest Date: Wed, 10 Jun 2026 22:27:00 -0400 Subject: [PATCH] feat(greeting): add late-running C6 fish_greeting override to config.fish --- config.fish | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config.fish b/config.fish index 89a8051..dd1a860 100644 --- a/config.fish +++ b/config.fish @@ -14,6 +14,8 @@ # __fish_config_op_autoexec C2 — startup side-effects # __fish_config_op_overrides C3 — key bindings, env, prompt overrides # __fish_config_op_integrations C4 — terminal/tool coupling +# __fish_config_op_logging C5 — scrollback capture / AUR log wrappers +# __fish_config_op_greeting C6 — per-session greeting / first-run welcome # Example: set -U __fish_config_op_aliases off (erase to re-enable) # ──────────────────────── Source CachyOS configs ──────────────────────── @@ -230,6 +232,16 @@ if status is-interactive # your main config or secrets files. For example, you might want different PATH additions, # aliases, or environment variables on your work laptop vs. your home desktop. test -f "$dot_fish/local.fish"; and source "$dot_fish/local.fish" + + # ─────────────────── C6: Greeting & First-Run UI override ─────────────── + # When the greeting category is disabled, stamp out any fish_greeting + # function that distro configs set (e.g., CachyOS defines it as fastfetch). + # This runs last inside the interactive block so our empty definition wins + # over whatever cachyos-config.fish or vendor conf.d installed. + if not __fish_config_op_enabled __fish_config_op_greeting + function fish_greeting + end + end # # ╭──────────────────────────── END OVERRIDES ──────────────────────────╮ # │ End of override section. │