From 13d415db2bbbbc72ab5db54049f3fbede46b50f7 Mon Sep 17 00:00:00 2001 From: Rootiest Date: Mon, 7 Sep 2026 14:56:16 -0400 Subject: [PATCH] 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. --- conf.d/bash_expands.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf.d/bash_expands.fish b/conf.d/bash_expands.fish index d81dc91..89c5bf7 100644 --- a/conf.d/bash_expands.fish +++ b/conf.d/bash_expands.fish @@ -7,6 +7,10 @@ # Provides bash-style history expansion functions for abbreviations. # 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 function expand_bang_all --description 'Execute expand_bang_all' # Opinionated guard (C3): no expansion when overrides are disabled.