fix(shell): preserve scrollback prompt colors in ov sticky headers

Use a per-invocation temp ov config to set SectionLine Background/Foreground
to empty strings, preventing ov from overriding the ANSI colors embedded in
the starship prompt when it is pinned as a sticky section header.

Also adds a second return sentinel inside the interactive block of config.fish
to guard against tool-injected init lines that target the inner scope, and
updates README accordingly.
This commit is contained in:
2026-06-03 20:43:00 -04:00
parent 15596bae5f
commit fd1ddddbf0
3 changed files with 26 additions and 6 deletions
+17 -1
View File
@@ -194,12 +194,28 @@ 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"
#
# ╭──────────────────────────── END OVERRIDES ──────────────────────────╮
# | End of override section. |
# ╰──────────────────────────── END OVERRIDES ──────────────────────────╯
# ─────────────────────────────────────────────────────────────────────────
# Tools like starship, zoxide, etc. append init lines below this point via their
# setup commands. We manage all integrations through conf.d/ instead, so we
# return here to prevent injected lines from conflicting with that setup.
#
# This catches injections within the interactive block and
# prevents them from conflicting with our conf.d/ setup.
return # <-- Do not remove this line.
# ─────────────────────────────────────────────────────────────────────────
end
# ─────────────────────────────────────────────────────────────────────────────
# Tools like starship, zoxide, etc. append init lines below this point via their
# setup commands. We manage all integrations through conf.d/ instead, so we
# return here to prevent injected lines from conflicting with that setup.
return
#
# This catches injections outside the interactive block and
# prevents them from conflicting with our conf.d/ setup.
return # <-- Do not remove this line.
# ─────────────────────────────────────────────────────────────────────────────