refactor(config): migrate C2 autoexec call sites to self-identifying guard

This commit is contained in:
2026-08-17 21:23:12 -04:00
parent 04fd832974
commit 760b8e68fd
5 changed files with 22 additions and 4 deletions
+6
View File
@@ -7,7 +7,10 @@
# Source: docs/generate_component_registry.py
set -g __fish_config_op_registry_keys \
__auto_source_fallback_venv: \
__fish_user_dots_link: \
agy: \
auto-pull: \
bash: \
cat: \
claude: \
@@ -27,7 +30,10 @@ set -g __fish_config_op_registry_keys \
zoxide:
set -g __fish_config_op_registry_values \
"autoexec/venv" \
"autoexec/sync" \
"aliases/dev-tools" \
"autoexec/sync autoexec/sync" \
"aliases/shell-tools" \
"aliases/filesystem" \
"aliases/dev-tools" \
+4 -1
View File
@@ -14,8 +14,11 @@
# Manage the registry with: auto-pull add / remove / list / status
# C2 guard: when auto-execution is disabled, do not register the handler.
__fish_config_op_enabled __fish_config_op_autoexec; or exit
__fish_config_op_enabled (status basename); or exit
# COMPONENT
# autoexec/sync
#
# SYNOPSIS
# __auto_pull_on_pwd (event handler, --on-variable PWD)
#