From 4caeb7ec91f5886a4e70b928b25036ccc0ec2ffd Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Thu, 8 Jul 2021 03:44:11 -0700 Subject: [PATCH] feat: replace ~ in preloadPath and sampleConfPath with homedir --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 3239855..828e904 100644 --- a/main.go +++ b/main.go @@ -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)