diff --git a/antibodylib/antibody_test.go b/antibodylib/antibody_test.go index ac856e1..7e6b1a2 100644 --- a/antibodylib/antibody_test.go +++ b/antibodylib/antibody_test.go @@ -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) { diff --git a/bundle/bundle_test.go b/bundle/bundle_test.go index ea1f879..e1ee842 100644 --- a/bundle/bundle_test.go +++ b/bundle/bundle_test.go @@ -15,7 +15,7 @@ func TestSuccessfullGitBundles(t *testing.T) { }{ { "caarlos0/jvm", - "jvm.plugin.zsh", + "jvm.plugin.zsh\nfpath+=( ", }, { "caarlos0/jvm kind:path", @@ -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) diff --git a/bundle/zsh.go b/bundle/zsh.go index 2c007bb..9bc5294 100644 --- a/bundle/zsh.go +++ b/bundle/zsh.go @@ -1,6 +1,7 @@ package bundle import ( + "fmt" "path/filepath" "strings" @@ -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 }