Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
docs: multiple folders
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jul 13, 2018
1 parent 3f571f3 commit 7223029
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion bundle/zsh.go
Expand Up @@ -21,7 +21,6 @@ func (bundle zshBundle) Get() (string, error) {
var lines = []string{}
for _, folder := range bundle.Project.Folders() {
for _, glob := range zshGlobs {
fmt.Println("vaaaaaai", folder)
files, err := filepath.Glob(filepath.Join(folder, glob))
if err != nil {
return "", err
Expand Down
11 changes: 11 additions & 0 deletions www/content/options.md
Expand Up @@ -58,4 +58,15 @@ Example:
```console
$ antibody bundle robbyrussell/oh-my-zsh folder:plugins/aws
source /Users/carlos/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh/plugins/aws/aws.plugin.zsh
fpath+=( /Users/carlos/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh/plugins/aws )
```

If you want multiple folders from the same plugin, you can just add
multiple `folder` options:

```console
source /Users/carlos/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh/plugins/aws/aws.plugin.zsh
fpath+=( /Users/carlos/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh/plugins/aws )
source /Users/carlos/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh/plugins/asdf/asdf.plugin.zsh
fpath+=( /Users/carlos/Library/Caches/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh/plugins/asdf )
```

0 comments on commit 7223029

Please sign in to comment.