diff --git a/docs/fish-config.1 b/docs/fish-config.1 index 877382d..c2b40f3 100644 --- a/docs/fish-config.1 +++ b/docs/fish-config.1 @@ -1784,6 +1784,11 @@ 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. +.PP +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. .IP .nf \f[C] @@ -1836,6 +1841,11 @@ set -U __fish_config_opinionated 0 # 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) \f[R] .fi .PP diff --git a/docs/html/11-7-customization.html b/docs/html/11-7-customization.html index 8558c4f..c035ccb 100644 --- a/docs/html/11-7-customization.html +++ b/docs/html/11-7-customization.html @@ -523,6 +523,10 @@ be switched off through six category opt-out variables, each evaluated via __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:
@@ -565,7 +569,12 @@ set -U __fish_config_op_aliases off
 set -U __fish_config_opinionated 0
 
 # Re-enable everything:
-set -Ue __fish_config_opinionated
+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: