presto-cli/src/main/java/io/prestosql/cli/Console.java/Console/getHistoryFile
class Console:    private static Path getHistoryFile()
    {
        String path = System.getenv("PRESTO_HISTORY_FILE");
        if (!isNullOrEmpty(path)) {
            return Paths.get(path);
        }
        return Paths.get(nullToEmpty(USER_HOME.value()), ".presto_history");
    }