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 #170 from getantibody/many-plugin.zsh
Browse files Browse the repository at this point in the history
Many plugin.zsh
  • Loading branch information
caarlos0 committed Feb 6, 2017
2 parents 3dd1475 + bae0aaf commit b0eb003
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bundle/zsh.go
Expand Up @@ -2,6 +2,7 @@ package bundle

import (
"path/filepath"
"strings"

"github.com/getantibody/antibody/project"
)
Expand All @@ -21,9 +22,13 @@ func (bundle zshBundle) Get() (result string, err error) {
if files == nil {
continue
}
var lines []string
for _, file := range files {
return "source " + file, err
lines = append(lines, "source "+file)
}

return strings.Join(lines, "\n"), err
}

return result, nil
}

0 comments on commit b0eb003

Please sign in to comment.