summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index c11fb22..311cba3 100644
--- a/structs.go
+++ b/structs.go
@@ -4,6 +4,7 @@
package main
import (
+ "os"
"sync"
"go.wit.com/lib/gui/prep"
@@ -20,6 +21,7 @@ type mainType struct {
auto *prep.Auto // more experiments for bash handling
forge *forgepb.Forge // your customized repo preferences and settings
machine *zoopb.Machine // your customized repo preferences and settings
+ homedir string // where the user homedir is
}
// move these to mainType
@@ -49,5 +51,6 @@ func initMain() {
state = make(map[*gitpb.Repo]string)
debnames = make(map[*gitpb.Repo]string)
+ me.homedir, _ = os.UserHomeDir()
dumpDebug()
}