From f77fc4ef5f2df96c6bba3cd6c7d88a77d61a5a80 Mon Sep 17 00:00:00 2001 From: ewy Date: Tue, 2 Jun 2026 15:07:59 +0200 Subject: add .wants and .includes .wants adds potential out-of-tree sources to your state (for monorepos, for example) .includes adds targets from another source to this one, adding inheritance --- paths/paths.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'paths/paths.go') diff --git a/paths/paths.go b/paths/paths.go index b714a23..1e6e2f9 100644 --- a/paths/paths.go +++ b/paths/paths.go @@ -9,13 +9,14 @@ import ( ) var ( - Ifs string - ConfigDir = Empty() - CacheDir = Empty() - ContextsFile = Empty() - HomeDir = Empty() - System = Empty() - This = "pik" + Ifs string + ConfigDir = Empty() + CacheDir = Empty() + ContextsFile = Empty() + HomeDir = Empty() + System = Empty() + This = "pik" + ContextsFileName = "contexts" ) var Paths = []*Path{ @@ -50,7 +51,7 @@ func (p *paths) Init() error { HomeDir.Set(xdg.Home) CacheDir.Set(filepath.Join(xdg.CacheHome, This)) ConfigDir.Set(filepath.Join(xdg.ConfigHome, This)) - ContextsFile.Set(path.Join(CacheDir.String(), "contexts")) + ContextsFile.Set(path.Join(CacheDir.String(), ContextsFileName)) System.Set(path.Join(ConfigDir.String())) Ifs = os.Getenv("IFS") -- cgit v1.3.1