]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - README.md
tests: fixes for noclobber (#62)
[zsh-autoenv.git] / README.md
index 0f88ba0ff17ee2fb3ba2a496e37498bed3b9478b..8bb95cbbfa84f03ad47fd47d484d0f4e448ac735 100644 (file)
--- a/README.md
+++ b/README.md
@@ -57,10 +57,16 @@ The varstash library has been taken from smartcd, and was optimized for Zsh.
 
 ### `autoenv_source_parent()`
 
-zsh-autoenv will stop looking for `.autoenv.zsh` files after the first one has
-been found.  But you can use the function `autoenv_source_parent` to source a
-parent `.autoenv.zsh` file from there.
+zsh-autoenv will stop looking for `.autoenv.zsh` files upwards after the first
+one has been found, but you can use the function `autoenv_source_parent` to
+source the next `.autoenv.zsh` file upwards the directory tree from there.
 
+The function accepts an optional argument, which allows to stop looking before
+the file system root is reached:
+
+```zsh
+autoenv_source_parent ../..
+```
 
 ## Installation
 
@@ -79,6 +85,11 @@ Add the following to your `.zshrc` where you are loading your plugins:
 
     zgen load Tarrasch/zsh-autoenv
 
+### Using [zplug](https://github.com/zplug/zplug)
+
+Add the following to your `.zshrc` where you are loading your plugins:
+
+    zplug "Tarrasch/zsh-autoenv"
 
 ## Configuration
 
@@ -119,6 +130,7 @@ Default: `0`
 
 
 ## Related projects
+- https://github.com/direnv/direnv
 - https://github.com/cxreg/smartcd
 - https://github.com/kennethreitz/autoenv