I am not affiliated with either project. About a week ago I was browsing the linuxserver page and came across hishtory. I selfhost a bunch of stuff, just ask me...
Hishtory does the same thing as mcfly. If you have just one device you can use sqlite. Where history excels is syncs all of your terminals across devices. If you are working offline, hishtory will sync when reconnected. You can use control+r to use hishtory. You can search all your history across all of your devices.
Hishtory was very easy to install on garuda linux.
set -Ux HISHTORY_SERVER http://<ipaddress>:<port>
curl https://hishtory.dev/install.py | python3 -
history init
The history secret key is needed for your other devices as well. The same key is needed on all your devices. On the second device:
set -Ux HISHTORY_SERVER http://<ipaddress>:<port>
curl https://hishtory.dev/install.py | python3 -
history init <secretkey>
links:
I run this behind a proxy as a subfolder, by stripping the pathprefix.
set -Ux https://<domain>/<subfolder>
EDIT: Prehaps this should have been under requests!