Add user specific config path.

pull/35/head
SolitudeSF 5 years ago
parent cad6037c6c
commit 5bdd0c8135
No known key found for this signature in database
GPG Key ID: 789B06817C385387

@ -51,10 +51,13 @@ const
proc main() =
var config = defaultConfig
var configFile = ""
let configFile = block:
if paramCount() > 0:
paramStr(1)
else:
getConfigDir() / "boomer" / "config"
if paramCount() > 0:
configFile = paramStr(1)
if existsFile configFile:
config = loadConfig(configFile)
echo "Using config: ", config

Loading…
Cancel
Save