diff options
| author | ewy <ewy0@protonmail.com> | 2026-06-02 15:07:59 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-06-02 15:07:59 +0200 |
| commit | f77fc4ef5f2df96c6bba3cd6c7d88a77d61a5a80 (patch) | |
| tree | bdead2d2b245407aaa20e71c433d7c8f757d7049 /paths/paths.go | |
| parent | 6d607f114f63184a43237a3ff80aee622401ee23 (diff) | |
.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
Diffstat (limited to 'paths/paths.go')
| -rw-r--r-- | paths/paths.go | 17 |
1 files changed, 9 insertions, 8 deletions
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") |
