{"id":13588235,"url":"https://github.com/wulfgarpro/history-sync","last_synced_at":"2025-05-16T18:04:13.077Z","repository":{"id":37390524,"uuid":"56032399","full_name":"wulfgarpro/history-sync","owner":"wulfgarpro","description":"An oh-my-zsh plugin for GPG encrypted internet synchronised Zsh history, with Git.","archived":false,"fork":false,"pushed_at":"2025-04-14T05:53:38.000Z","size":3341,"stargazers_count":253,"open_issues_count":5,"forks_count":28,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-10T03:51:41.246Z","etag":null,"topics":["oh-my-zsh","zsh","zsh-history","zsh-plugin"],"latest_commit_sha":null,"homepage":"https://www.wulfgar.pro/synchronising-zsh-history-over-the-internet-with-oh-my-zsh-and-history-sync/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wulfgarpro.png","metadata":{"files":{"readme":"README.md","changelog":"history-sync.plugin.zsh","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-04-12T04:59:09.000Z","updated_at":"2025-04-14T05:53:41.000Z","dependencies_parsed_at":"2023-01-19T02:15:13.626Z","dependency_job_id":"c61ea277-fc04-46d9-be0f-49d9131f0a56","html_url":"https://github.com/wulfgarpro/history-sync","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wulfgarpro%2Fhistory-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wulfgarpro%2Fhistory-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wulfgarpro%2Fhistory-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wulfgarpro%2Fhistory-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wulfgarpro","download_url":"https://codeload.github.com/wulfgarpro/history-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254582902,"owners_count":22095518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["oh-my-zsh","zsh","zsh-history","zsh-plugin"],"created_at":"2024-08-01T15:06:35.300Z","updated_at":"2025-05-16T18:04:13.024Z","avatar_url":"https://github.com/wulfgarpro.png","language":"Shell","funding_links":[],"categories":["Plugins","Shell"],"sub_categories":["ZSH on Windows","Zinit (née zplugin)"],"readme":"[![history-sync](https://github.com/wulfgarpro/history-sync/actions/workflows/actions.yml/badge.svg)](https://github.com/wulfgarpro/history-sync/actions/workflows/actions.yml)\n\n# history-sync\n\u003e An Oh My Zsh plugin for GPG encrypted, Internet synchronized Zsh history using Git.\n\n## Installation\n```bash\nsudo apt install gpg git\ngit clone git@github.com:wulfgarpro/history-sync.git\ncp -r history-sync ~/.oh-my-zsh/plugins\n```\n\nThen open .zshrc file and append history-sync to the plugin line:\n\n```bash\nplugins=(... history-sync)\n```\n\nAnd finally, reload zsh:\n\n```bash\nzsh\n```\n\n## Usage\nBefore history-sync can be useful, you need two things:\n\n1. A hosted git repository, e.g. GitHub, Bitbucket\n   * Ideally with ssh key access\n2. A configured gpg key pair for encrypting and decrypting your history file and the enrolled public keys of all the nodes in your web of trust\n   * See [the GnuPG documentation](https://www.gnupg.org/documentation/) for more information since it's outside the scope of this README\n\nOnce you have these things in place, it's just a matter of updating the needed environment variables to suit your configuration:\n\n* ZSH_HISTORY_FILE: your zsh_history file location\n* ZSH_HISTORY_PROJ: your git project for housing your zsh_history file\n* ZSH_HISTORY_FILE_ENC: your encrypted zsh_history file location\n* ZSH_HISTORY_COMMIT_MSG: your default message when pushing to $ZSH_HISTORY_PROJ\n\nWhich have the following defaults:\n\n```bash\nZSH_HISTORY_FILE_NAME=\".zsh_history\"\nZSH_HISTORY_FILE=\"${HOME}/${ZSH_HISTORY_FILE_NAME}\"\nZSH_HISTORY_PROJ=\"${HOME}/.zsh_history_proj\"\nZSH_HISTORY_FILE_ENC_NAME=\"zsh_history\"\nZSH_HISTORY_FILE_ENC=\"${ZSH_HISTORY_PROJ}/${ZSH_HISTORY_FILE_ENC_NAME}\"\nZSH_HISTORY_COMMIT_MSG=\"latest $(date)\"\n```\n\nand running the commands:\n\n```bash\n# pull history\nzhpl\n\n# push history\nzhps -r \"John Brown\" -r 876T3F78 -r ...\n\n# pull and push history\nzhsync\n```\n\n## Demo\nCheck out the [screen cast](https://asciinema.org/a/43575).\n\n## Licence\nMIT @ [James Fraser](https://www.wulfgar.pro)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwulfgarpro%2Fhistory-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwulfgarpro%2Fhistory-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwulfgarpro%2Fhistory-sync/lists"}