This article introduces bashhub, which allows you to manage Linux commands in the cloud.

If you want to synchronize Bash commands across remote locations, you can consider storing commands in the cloud. The open-source software bashhub makes this possible.
rcaloras/bashhub-client: Bash history in the cloud. Indexed and searchable.
Bash history in the cloud. Indexed and searchable.
Information such as session IDs is centrally managed along with commands.
When using it, you’ll need to register on the bashhub website and be assigned a username.
There are security concerns, but please check the GitHub readme for details.