I really wish there was a global setting to turn this on by default/in config but afaik for backwards compatibility reasons Linus doesn't want to do that so the advice I've heard is to just configure it as an alias
Personally, I'm lazy and just always have it in recent substring match history in the shell