diff --git a/plugin/plugin.go b/plugin/plugin.go index ad6dfe93e9..4a60b8da3b 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -127,6 +127,7 @@ func DiscoverPluginsGivenFilePattern(pluginLogger hclog.Logger, prefix, suffix s if currentHomeDir, err := os.UserHomeDir(); err == nil { dirs = append(dirs, filepath.Join(currentHomeDir, ".optimus", "plugins")) } + dirs = append(dirs, []string{"/usr/bin", "/usr/local/bin"}...) for _, dirPath := range dirs { fileInfos, err := os.ReadDir(dirPath)