Skip to content

Commit 5025ab6

Browse files
committed
Include ~/.local/lib/mkprompt into library path
1 parent 6bb0249 commit 5025ab6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

internal/importer/importer.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ func GetLibraryPaths() (paths []string, err error) {
2626
if configFileDir, err = config.ConfigFileDirectory(); err != nil {
2727
return
2828
}
29-
paths = []string{filepath.Join(configFileDir)}
29+
var userHomeDir string
30+
if userHomeDir, err = os.UserHomeDir(); err != nil {
31+
return
32+
}
33+
paths = []string{
34+
filepath.Join(configFileDir),
35+
filepath.Join(userHomeDir, ".local", "lib", "mkprompt"),
36+
}
3037
if constants.DestDir != "" {
3138
paths = append(paths, filepath.Join(constants.DestDir, "lib"))
3239
}

0 commit comments

Comments
 (0)