Skip to main content

Keep your machine's shell history synchronized

Project description

SyncShell

MIT License Build Status PyPi PyPi

SyncShell as a simple and secure tool allows to synchronize machine's shell history across devices. It's built on top of Github Gist and written in Python (CLI). With SyncShell, you no longer have to worry about manually syncing your office and home machine's shell history and let continue where the terminal session left.

Features

  • Sync your shell history across all your devices
  • Securely store your shell history on Github Gist
  • Support for zsh and bash shells
  • Easy to install and use

Installation

To install SyncShell, simply run the following command:

$ pip install syncshell

Usage

To use SyncShell, It first needs to set up a Github token key by following these steps:

  1. Open Github personal access tokens page, Generate a new token with gist scope feature.
  2. Execute the syncshell auth command, Enter the token key to validate and confirm it.

Once finished, try to upload shell history by the following command:

$ syncshell upload

After uploading, the download command lets to sync and pull changes on the other machines:

$ syncshell download

Synopsis

$ syncshell
Type:        Application
String form: <syncshell.cli.Application object at 0x101b1ff10>
Docstring:   SyncShell CLI Application

Usage:       syncshell
             syncshell auth
             syncshell download
             syncshell upload

How it Works

SyncShell is a tool that synchronizes shell history across all devices by securely storing the history file on Github Gist. Github Gist provides two types of Gists, public and secret. When the syncshell upload command is executed, the shell history file is uploaded and stored securely on Github Gist as a secret Gist. To download the uploaded shell history on other devices, the syncshell download command is used. This command retrieves the previously uploaded Gist, allowing the user to access their shell history on any device.

Security: A Gist will be secret until it's not shared and will be secret and safe until you only have the Github Token and Gist ID.

Privacy: In case of having password or secret in a history file, Its suggested to first have a alignment with privacy policies for any usecase.

Contributing

I would love to have your help in making SyncShell idea better and expand it capabilities.

Branching

  • main is being used for the latest development version.
  • release is being used for the latest stable version.

Pull Requests

To contribute follow the below steps:

  1. Install poetry as a dependency manager
  2. Install dependencies by running poetry shell && poetry install
  3. Make your changes
  4. Run and debug your changes by running poetry run python syncshell
  5. Run tests by running poetry run pytest -c pytest.ini -s
  6. Submit a pull request

License

The code is licensed under the MIT License. See the data's LICENSE file for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

syncshell-1.0.8.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

syncshell-1.0.8-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file syncshell-1.0.8.tar.gz.

File metadata

  • Download URL: syncshell-1.0.8.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.4 Darwin/23.4.0

File hashes

Hashes for syncshell-1.0.8.tar.gz
Algorithm Hash digest
SHA256 c8d5565323964f5afb4a318ef9d7df879d26f6855fca29cc178803b96a58bfe0
MD5 158001d8b897e3ea4c36450700bc10bf
BLAKE2b-256 1a0565be45b6256868a6ba17fc9d253bcaaf717d8e69f3971049c3c534218295

See more details on using hashes here.

File details

Details for the file syncshell-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: syncshell-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.4 Darwin/23.4.0

File hashes

Hashes for syncshell-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 bb24022c032815ef0dfb651774b2ab416d4ab9c9059168b10c6e8014d4d75471
MD5 539b0fa7c76ee50ed67017e2e6077a90
BLAKE2b-256 76fbc11347d41e278026b277a5b4a530730e826f2f09ef98101979e3a7109fb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page