preexec: only run history merge if enabled