[readline] dedupe history