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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user