c1e5cbed5bbefbe09608581d0b47774652221780

Author
Marc Cornellà <marc.cornella@live.com>
Committer
GitHub <noreply@github.com>
Date

Message

Fix order and reword some things

Diff

 1diff --git a/plugins/profiles/README.md b/plugins/profiles/README.md
 2index b590a370f49b2f2f9d17097c83b4a293b8452bca..5aa1918e26a35e4f0e229664d66245bc9b0fe4be 100644
 3--- a/plugins/profiles/README.md
 4+++ b/plugins/profiles/README.md
 5@@ -1,21 +1,25 @@
 6 # profiles plugin
 7 
 8 This plugin allows you to create separate configuration files for zsh based
 9-on a domain of your host.
10+on your long hostname (including the domain).
11 
12-It takes your `HOST` and looks for files named according to the domain parts 
13-in `$ZSH_CUSTOM/profiles/` directory.
14+To use it, add profiles to the plugins array of your zshrc file:
15 
16-For example, for `HOST=my.domain.com`, it will try to load the following files:
17+```sh
18+plugins=(... profiles)
19+```
20+
21+It takes your `$HOST` variable and looks for files named according to the
22+domain parts in `$ZSH_CUSTOM/profiles/` directory.
23+
24+For example, for `HOST=host.domain.com`, it will try to load the following files,
25+in this order:
26 
27 ```text
28-$ZSH_CUSTOM/profiles/my.domain.com
29-$ZSH_CUSTOM/profiles/domain.com
30 $ZSH_CUSTOM/profiles/com
31+$ZSH_CUSTOM/profiles/domain.com
32+$ZSH_CUSTOM/profiles/host.domain.com
33 ```
34 
35-To use it, add profiles to the plugins array of your zshrc file:
36-
37-```sh
38-plugins=(... profiles)
39-```
40+This means that if there are conflicting settings on those files, the one to take
41+precedence will be the last applied, i.e. the one in host.domain.com.