feat(guards): per-category variable overrides master in __fish_config_op_enabled #41
Reference in New Issue
Block a user
Delete Branch "feat/per-category-master-override"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
__fish_config_op_enabledevaluation order: category variable is checked first; the master switch__fish_config_opinionatedis only consulted when the category variable is unset or unrecognizedset -U __fish_config_op_greeting 1) now enables that category even when__fish_config_opinionated=0— previously the falsy master unconditionally blocked all categoriesdocs/fish-config.mdBehavior change
Manual Verification
set -Ue __fish_config_opinionated; set -Ue __fish_config_op_greeting), open a new shell — greeting and all opinionated components should be activeset -U __fish_config_opinionated 0→ open a new shell → no greeting, no command shadows (lsshould not use eza)set -U __fish_config_opinionated 0; set -U __fish_config_op_greeting 1→ open a new shell → greeting runs but command shadows are still suppressedset -Ue __fish_config_opinionated; set -U __fish_config_op_greeting 0→ open a new shell → greeting is suppressed, all other categories activeset -Ue __fish_config_opinionated; set -Ue __fish_config_op_greeting