about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2020-04-29 00:30:17 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-05-02 01:12:07 +0000
commit34d69acbef44f654ea51d762ffdb02f5b1e8b9e1 (patch)
tree78812032a1ac8e24688ec93b3b1539ca257b69d2 /Doc
parent95adde8ddc744af744975a58dccd2c3cc53b5333 (diff)
downloadzsh-34d69acbef44f654ea51d762ffdb02f5b1e8b9e1.tar.gz
zsh-34d69acbef44f654ea51d762ffdb02f5b1e8b9e1.tar.xz
zsh-34d69acbef44f654ea51d762ffdb02f5b1e8b9e1.zip
45737 (+ docs, and update the test from 45722): zstyle: When determining the weight (specificity) of a pattern, consider the number of components before anything else, as documented.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/mod_zutil.yo6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/Zsh/mod_zutil.yo b/Doc/Zsh/mod_zutil.yo
index c69233f9d..9c50e6122 100644
--- a/Doc/Zsh/mod_zutil.yo
+++ b/Doc/Zsh/mod_zutil.yo
@@ -40,8 +40,8 @@ that it looks up the tt(preferred-precipitation) style under the
 `tt(:weather:)var(continent)tt(:)var(day-of-the-week)tt(:)var(phase-of-the-moon))' context.
 According to this, you might set the following in your tt(zshrc):
 
-example(zstyle ':weather:*:Sunday:*' preferred-precipitation snow
-zstyle ':weather:europe:*' preferred-precipitation rain)
+example(zstyle ':weather:europe:*' preferred-precipitation rain
+zstyle ':weather:*:Sunday:*' preferred-precipitation snow)
 
 Then the plugin would run under the hood a command such as
 
@@ -52,7 +52,7 @@ On Sundays tt($REPLY) would be set to `tt(snow)'; in Europe it would be set
 to `tt(rain)'; and on Sundays in Europe it would be set to `tt(snow)' again,
 because the patterns `tt(:weather:europe:*)' and `tt(:weather:*:Sunday:*)' both
 match the var(context) argument to tt(zstyle -s), are equally specific, and the
-latter was defined first.
+latter is more specific (because it has more colon-separated components).
 
 em(Usage)