2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 19:53:23 +00:00

feat: replace ~ in preloadPath and sampleConfPath with homedir

This commit is contained in:
sammyette 2021-07-08 03:44:11 -07:00
parent 822b2876e9
commit 4caeb7ec91

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)