Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msudgh/syncshell
Keep your machine's shell history synchronize
https://github.com/msudgh/syncshell
bash gist python shell synchronization terminal zsh
Last synced: 25 days ago
JSON representation
Keep your machine's shell history synchronize
- Host: GitHub
- URL: https://github.com/msudgh/syncshell
- Owner: msudgh
- License: mit
- Created: 2018-05-06T10:14:50.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T00:15:26.000Z (2 months ago)
- Last Synced: 2024-09-28T07:41:07.935Z (about 1 month ago)
- Topics: bash, gist, python, shell, synchronization, terminal, zsh
- Language: Python
- Homepage:
- Size: 295 KB
- Stars: 61
- Watchers: 4
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SyncShell
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:```bash
$ 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**](https://github.com/settings/tokens) page, [**Generate a new token**](https://github.com/settings/tokens/new) 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:
```bash
$ syncshell upload
```After uploading, the download command lets to sync and pull changes on the other machines:
```bash
$ syncshell download
```### Synopsis
```bash
$ syncshell
Type: Application
String form:
Docstring: SyncShell CLI ApplicationUsage: 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.6+ is required.
- Install [poetry](https://python-poetry.org/docs/#installation) 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](https://python-poetry.org/docs/#installation) 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](https://github.com/msudgh/syncshell/blob/main/LICENSE) file for more information.