From bb5b6b361abf8b1593f39e5758d73ea439094d2e Mon Sep 17 00:00:00 2001 From: Rootiest Date: Mon, 7 Sep 2026 14:57:02 -0400 Subject: [PATCH] perf(conf.d): skip key_bindings.fish in non-interactive shells fish_user_key_bindings is invoked only by the interactive reader. --- conf.d/key_bindings.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf.d/key_bindings.fish b/conf.d/key_bindings.fish index 588e073..e6143ab 100644 --- a/conf.d/key_bindings.fish +++ b/conf.d/key_bindings.fish @@ -47,6 +47,10 @@ # This allows for rapid-fire math without leaving the current shell. # ────────────────────────────────────────────────────────────────────── +# Defines only fish_user_key_bindings, which fish calls from the interactive +# reader and nowhere else. +status is-interactive; or return + function fish_user_key_bindings # Custom key chords are opinionated (C3 overrides); skip them entirely