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

Commit

Permalink
Merge pull request #233 from getantibody/fpath
Browse files Browse the repository at this point in the history
fix: fpath
  • Loading branch information
caarlos0 authored Jun 6, 2018
2 parents 22074d9 + 00de97b commit c00a55d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion antibodylib/antibody_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func TestMultipleRepositories(t *testing.T) {
runtime.NumCPU(),
).Bundle()
assert.NoError(t, err)
assert.Len(t, strings.Split(sh, "\n"), 16)
assert.Len(t, strings.Split(sh, "\n"), 27)
}

func TestHome(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion bundle/bundle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestSuccessfullGitBundles(t *testing.T) {
}{
{
"caarlos0/jvm",
"jvm.plugin.zsh",
"jvm.plugin.zsh\nfpath+=( ",
},
{
"caarlos0/jvm kind:path",
Expand All @@ -32,6 +32,7 @@ func TestSuccessfullGitBundles(t *testing.T) {
}
for _, row := range table {
t.Run(row.line, func(t *testing.T) {
t.Parallel()
home := home()
result, err := bundle.New(home, row.line).Get()
assert.Contains(t, result, row.result)
Expand Down
3 changes: 2 additions & 1 deletion bundle/zsh.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package bundle

import (
"fmt"
"path/filepath"
"strings"

Expand Down Expand Up @@ -29,7 +30,7 @@ func (bundle zshBundle) Get() (result string, err error) {
for _, file := range files {
lines = append(lines, "source "+file)
}

lines = append(lines, fmt.Sprintf("fpath+=( %s )", bundle.Project.Folder()))
return strings.Join(lines, "\n"), err
}

Expand Down

0 comments on commit c00a55d

Please sign in to comment.