Add externel module z

This commit is contained in:
goofansu 2014-12-25 07:00:03 +08:00
parent d43bcb9720
commit 1741a9f4af
4 changed files with 37 additions and 0 deletions

3
.gitmodules vendored
View file

@ -16,3 +16,6 @@
[submodule "modules/prompt/functions/pure"]
path = modules/prompt/external/pure
url = https://github.com/sindresorhus/pure.git
[submodule "modules/z/externel"]
path = modules/z/externel
url = https://github.com/rupa/z.git

32
modules/z/README.md Normal file
View file

@ -0,0 +1,32 @@
Z
===
This is [z](https://github.com/rupa/z) ported to a prezto module.
Tracks your most used directories, based on 'frecency'.
Usage
---
```
z [-chlrtx] [regex1 regex2 ... regexn]
```
Example
---
```
z foo cd to most frecent dir matching foo
z foo bar cd to most frecent dir matching foo, then bar
z -r foo cd to highest ranked dir matching foo
z -t foo cd to most recently accessed dir matching foo
z -l foo list all dirs matching foo (by frecency)
```
For more usage information, please read the [original repository](https://github.com/rupa/z).

1
modules/z/externel Submodule

@ -0,0 +1 @@
Subproject commit b620b0a8af9fa4bd476087484fd0626d16fc4358

1
modules/z/init.zsh Normal file
View file

@ -0,0 +1 @@
source "${0:h}/externel/z.sh"