feat(guards): per-category variable overrides master in __fish_config_op_enabled #41

Merged
rootiest merged 5 commits from feat/per-category-master-override into main 2026-06-11 03:09:52 +00:00
Showing only changes of commit e776e7fba6 - Show all commits
+9
View File
@@ -1387,6 +1387,10 @@ __fish_variable_check. Set a variable to any falsy value (0, false, no,
off, n) to disable its category; erase it or set a truthy value (1, true,
yes, on, y) to re-enable. Unset means enabled.
An explicit per-category truthy value takes precedence over the master
switch: setting __fish_config_opinionated=0 disables all unset categories,
but a category with an explicit truthy value remains enabled regardless.
Variable Disables
------------------------------ ------------------------------------
__fish_config_op_aliases Command shadows and flag injection:
@@ -1433,6 +1437,11 @@ Examples:
# Re-enable everything:
set -Ue __fish_config_opinionated
# Minimal mode but keep the greeting:
set -U __fish_config_opinionated 0
set -U __fish_config_op_greeting 1
# (erase both to go back to full-flavor defaults)
Notes:
- Command shadows (rm, cat, ls, ...) react immediately; conf.d-level