浏览代码

Add profiles documentation

Lukasz Chrzaszcz 4 年之前
父节点
当前提交
eaa682c0a6
共有 1 个文件被更改,包括 21 次插入0 次删除
  1. 21 0
      plugins/profiles/README.md

+ 21 - 0
plugins/profiles/README.md

@@ -0,0 +1,21 @@
+# profiles plugin
+
+This plugin allows you to create separate configuration files for zsh based
+on a domain of your host.
+
+It takes your `HOST` and looks for files named according to the domain parts 
+in `$ZSH_CUSTOM/profiles/` directory.
+
+For example, for `HOST=my.domain.com`, it will try to load the following files:
+
+```text
+$ZSH_CUSTOM/profiles/my.domain.com
+$ZSH_CUSTOM/profiles/domain.com
+$ZSH_CUSTOM/profiles/com
+```
+
+To use it, add profiles to the plugins array of your zshrc file:
+
+```sh
+plugins=(... profiles)
+```