perf(conf.d): skip paru/yay wrapper generation in non-interactive shells

Neither file defines a function or sets a global; their only effect is
writing ~/.local/bin/<tool>, which every interactive session does anyway.
Combined 10.7 ms off every fish -c.
This commit is contained in:
2026-09-07 19:58:10 -04:00
parent c998d1b8d7
commit 52711a42a2
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -10,6 +10,10 @@
# site paru-autoexec: autoexec/pkg-wrappers # site paru-autoexec: autoexec/pkg-wrappers
# site paru-logging: logging/pkg-logs # site paru-logging: logging/pkg-logs
# Defines nothing; its only effect is generating ~/.local/bin/paru, an
# idempotent write every interactive session already performs.
status is-interactive; or return
# Auto-generating a wrapper in ~/.local/bin is opinionated (C2 auto-exec). # Auto-generating a wrapper in ~/.local/bin is opinionated (C2 auto-exec).
# Wrapper generation is also gated by C5 (Logging & Capture). # Wrapper generation is also gated by C5 (Logging & Capture).
__fish_config_op_enabled (status basename) paru-autoexec; or return __fish_config_op_enabled (status basename) paru-autoexec; or return
+4
View File
@@ -10,6 +10,10 @@
# site yay-autoexec: autoexec/pkg-wrappers # site yay-autoexec: autoexec/pkg-wrappers
# site yay-logging: logging/pkg-logs # site yay-logging: logging/pkg-logs
# Defines nothing; its only effect is generating ~/.local/bin/yay, an
# idempotent write every interactive session already performs.
status is-interactive; or return
# Auto-generating a wrapper in ~/.local/bin is opinionated (C2 auto-exec). # Auto-generating a wrapper in ~/.local/bin is opinionated (C2 auto-exec).
# Wrapper generation is also gated by C5 (Logging & Capture). # Wrapper generation is also gated by C5 (Logging & Capture).
__fish_config_op_enabled (status basename) yay-autoexec; or return __fish_config_op_enabled (status basename) yay-autoexec; or return