[1] : https://unix.stackexchange.com/questions/4079/put-history-co...
[2] : https://unix.stackexchange.com/questions/529195/load-command...
However, there is Warp, which might be of interest.
“Ask Warp AI to suggest the right command or chat to get answers about any programming question. Your requests stay private and secure, never used to train public models.”
I haven’t tried it myself, but I have aquaintances that swear by it.
example: https://norden.social/@chucker/110481404731662825
That could be done with Linux (wayland/x) but on MPW the shell/terminal/commando were all integrated which isn't the case for Linux or OS X today.