fix: change default hist path to use hist name instead of config name

windows-fixes
TorchedSammy 2022-02-23 21:29:37 -04:00
parent 5e9ea9fead
commit 209abfac77
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 2 deletions

View File

@ -60,8 +60,7 @@ func main() {
defaultHistPath = filepath.Join(confDir, "hilbish", ".hilbish-history") defaultHistPath = filepath.Join(confDir, "hilbish", ".hilbish-history")
} }
} else { } else {
// else do ~ substitution defaultHistPath = filepath.Join(strings.Replace(defaultHistDir, "~", homedir, 1), ".hilbish-history")
defaultHistPath = filepath.Join(strings.Replace(defaultHistDir, "~", homedir, 1), ".hilbishrc.lua")
} }
helpflag := getopt.BoolLong("help", 'h', "Prints Hilbish flags") helpflag := getopt.BoolLong("help", 'h', "Prints Hilbish flags")
verflag := getopt.BoolLong("version", 'v', "Prints Hilbish version") verflag := getopt.BoolLong("version", 'v', "Prints Hilbish version")