perf(conf.d): skip bash_expands.fish in non-interactive shells

The six expand_* functions are only ever reached through abbr --function,
which fires during interactive expansion.
This commit is contained in:
2026-09-07 14:56:16 -04:00
parent c3a2b6fa0c
commit 13d415db2b
+4
View File
@@ -7,6 +7,10 @@
# Provides bash-style history expansion functions for abbreviations. # Provides bash-style history expansion functions for abbreviations.
# These functions are gated by the C3 overrides switch. # These functions are gated by the C3 overrides switch.
# The six expand_* functions are reachable only through abbr --function
# (conf.d/abbr.fish:677-697), i.e. only during interactive expansion.
status is-interactive; or return
# Execute expand_bang_all # Execute expand_bang_all
function expand_bang_all --description 'Execute expand_bang_all' function expand_bang_all --description 'Execute expand_bang_all'
# Opinionated guard (C3): no expansion when overrides are disabled. # Opinionated guard (C3): no expansion when overrides are disabled.