feat: replace ~ in preloadPath and sampleConfPath with homedir

pull/69/head
sammyette 2021-07-08 03:44:11 -07:00
parent 822b2876e9
commit 4caeb7ec91
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ var (
func main() {
homedir, _ = os.UserHomeDir()
curuser, _ = user.Current()
preloadPath = strings.Replace(preloadPath, "~", homedir, 1)
sampleConfPath = strings.Replace(sampleConfPath, "~", homedir, 1)
if defaultConfDir == "" {
// we'll add *our* default if its empty (wont be if its changed comptime)