For shell commands, there is a tool from Github that does it quite well (and it's included on the copilot plan)[1].
It's perfect to run fast bash commands that I forgot but are simple enough that the first Google search result would solve it anyways.
[1] https://www.npmjs.com/package/@githubnext/github-copilot-cli