1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Get rid of the rest of global config

Pass appropriate config to display/focus tracker
Move open file command to a singular global
Remove global config variable
This commit is contained in:
Sean Smith
2019-04-27 15:33:32 -04:00
parent 2d7cafa3bf
commit ce2a9b3301
5 changed files with 24 additions and 22 deletions

View File

@@ -17,8 +17,6 @@ const ConfigDirV1 = "~/.wtf/"
// ConfigDirV2 defines the path to the second version of the configuration. Use this.
const ConfigDirV2 = "~/.config/wtf/"
var Config *config.Config
/* -------------------- Config Migration -------------------- */
// MigrateOldConfig copies any existing configuration from the old location
@@ -132,7 +130,6 @@ func LoadConfigFile(filePath string) *config.Config {
fmt.Printf(" %s\n", err.Error())
os.Exit(1)
}
Config = cfg
return cfg
}