go get -u + fix build error

This commit is contained in:
David Dworken
2024-08-25 14:39:57 -07:00
parent 7a19b4defd
commit 904964e177
4 changed files with 499 additions and 140 deletions

View File

@ -219,7 +219,7 @@ func ImportHistory(ctx context.Context, shouldReadStdin, force bool) (int, error
filepath.Join(homedir, ".bash_history"),
filepath.Join(homedir, ".zsh_history"),
}
if histfile := os.Getenv("HISTFILE"); histfile != "" && !slices.Contains[string](inputFiles, histfile) {
if histfile := os.Getenv("HISTFILE"); histfile != "" && !slices.Contains(inputFiles, histfile) {
inputFiles = append(inputFiles, histfile)
}
zHistPath := filepath.Join(homedir, ".zhistory")