Skip to main content

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 syncs shell history across devices by storing it on Github Gist. It uploads the history as a secret Gist with syncshell upload and retrieves it with syncshell download.

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 use case.

Contributing

Any interest of contribution is welcome. Feel free to send a PR, report a bug, or request a feature. Below are the guidelines to contribute to the project.

Development

  • Python 3.12+ is required.
  • Install poetry as a dependency manager.
  • Install dependencies by running poetry shell && poetry install
  • Run and debug your changes by running poetry run python syncshell

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. Visit LICENSE file for more information.

Metadata

Release files for syncshell 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for syncshell 1.1.0
File Size Uploaded
syncshell-1.1.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for syncshell 1.1.0
File Interpreter ABI Platform
syncshell-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / syncshell-1.1.0.tar.gz

Download URL syncshell-1.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
29e8e1a963320f381e1e922512c89eee4a930e7251a2c97789353b7a701af7f3
BLAKE2b-256 checksum
How to use checksums
8649ae57b1297e1d0dc02c731ae2fdee5ddfb8c695d5e968cdf642701c3b9cdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.10.4 Darwin/24.6.0

Release files / syncshell-1.1.0-py3-none-any.whl

Download URL syncshell-1.1.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbcb69006dee00323cea6d5d41799ff0061255f414c7b736d948f7df9697e799
BLAKE2b-256 checksum
How to use checksums
f3e6c2641876388bd96feec93de5921db5572cce1b93d1f788c3d28fe9c472ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.10.4 Darwin/24.6.0

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.2

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page