add xterm settings to the config
This commit is contained in:
parent
49a06843e9
commit
2398e30048
|
@ -39,4 +39,6 @@ message ForgeConfigs { // `autogenpb:marshal` `autogenpb:nomutex`
|
|||
string version = 2; // could be used for protobuf schema change violations?
|
||||
repeated ForgeConfig ForgeConfigs = 3;
|
||||
string username = 4; // what to use for the user branch (default ENV{USER})
|
||||
string xterm = 14; // what xterm the user wants as the default
|
||||
repeated string xtermArgv = 15; // the argv line for xterm
|
||||
}
|
||||
|
|
10
init.go
10
init.go
|
@ -28,6 +28,16 @@ func Init() *Forge {
|
|||
f.Config.Username = usr.Username
|
||||
f.SetConfigSave(true)
|
||||
}
|
||||
|
||||
if f.Config.Xterm == "" {
|
||||
f.Config.Xterm = "xterm"
|
||||
f.Config.XtermArgv = append(f.Config.XtermArgv, "-bg")
|
||||
f.Config.XtermArgv = append(f.Config.XtermArgv, "black")
|
||||
f.Config.XtermArgv = append(f.Config.XtermArgv, "-fg")
|
||||
f.Config.XtermArgv = append(f.Config.XtermArgv, "white")
|
||||
f.SetConfigSave(true)
|
||||
}
|
||||
|
||||
f.Machine.InitWit()
|
||||
|
||||
now := time.Now()
|
||||
|
|
Loading…
Reference in New Issue