refactor(config): migrate C2 autoexec call sites to self-identifying guard
This commit is contained in:
@@ -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" \
|
||||
|
||||
@@ -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)
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user