{"id":18547734,"url":"https://github.com/johnramsden/zsh-histsync","last_synced_at":"2026-04-30T14:32:27.466Z","repository":{"id":102821037,"uuid":"109453325","full_name":"johnramsden/zsh-histsync","owner":"johnramsden","description":"oh-my-zsh plugin for syncing ZSH history","archived":false,"fork":false,"pushed_at":"2017-12-14T00:54:09.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-13T17:38:22.636Z","etag":null,"topics":["history","oh-my-zsh","zsh","zsh-plugins","zshrc"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnramsden.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2017-11-04T00:03:16.000Z","updated_at":"2019-07-27T07:15:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"458ae766-021d-4d07-92a2-b91614b63240","html_url":"https://github.com/johnramsden/zsh-histsync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnramsden/zsh-histsync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnramsden%2Fzsh-histsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnramsden%2Fzsh-histsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnramsden%2Fzsh-histsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnramsden%2Fzsh-histsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnramsden","download_url":"https://codeload.github.com/johnramsden/zsh-histsync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnramsden%2Fzsh-histsync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32468009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["history","oh-my-zsh","zsh","zsh-plugins","zshrc"],"created_at":"2024-11-06T20:31:01.293Z","updated_at":"2026-04-30T14:32:27.435Z","avatar_url":"https://github.com/johnramsden.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zsh-histsync\n\noh-my-zsh plugin for syncing ZSH history.\n\nSynchronizes history between multiple machines using a git repository.\n\n## Setup\n\nCreate a git repository, or clone one in the location your history will be kept.\n\nThe default location is ```${ZSH_CUSTOM}/zsh-history/```. This will depend on where your ```${ZSH_CUSTOM}``` directory is, it is located at ```${HOME}/.oh-my-zsh/custom/``` by default, but can be changed in the ```zshrc```.\n\n```\ncd ${ZSH_CUSTOM}\ngit init zsh-history\n```\n\nAdd a remote location where history will be kept, and copy in your history you want to start with. alternatively, create a blank file to start with empty history.\n\n```\ngit remote add origin git@github.com:johnramsden/zsh-history.git\ncp ${HOME}/.zsh_history zsh_history\ngit add zsh_history\n```\n\nWith the history configured, clone the plugin in your oh-my-zsh plugin directory.\n\n```\ncd ${ZSH_CUSTOM}/plugins\ngit clone git@github.com:johnramsden/zsh-history.git\n```\n\nNow add the plugin to your zshrc active plugins, it should be added as 'histsync'.\n\n```\nplugins=(git archlinux ... histsync)\n```\n\n## Options\n\nTo override the default options, export the associated variable in your ```zshrc``` configuration file.\n\n*   ```ZSH_HISTSYNC_FILE_NAME=zsh_history```           - Default settings, overrride in zshrc\n*   ```ZSH_HISTSYNC_REPO=${ZSH_CUSTOM}/zsh-history```  - Set zsh histsync repo location\n*   ```GIT_COMMIT_MSG=\"History update from $(hostname) - $(date)\"```  - Set commit message\n\n## Usage\n\nThe ```histsync``` command is used to manage the history synchronization.\n\nThe following commands exist:\n\n*   ```histsync```\n*   ```histsync clone```\n*   ```histsync commit \u003crepository\u003e```\n*   ```histsync help```\n*   ```histsync pull```\n*   ```histsync push```\n\n### Main Command\n\nCommand    | Description\n-----------|---\nhistsync   | Merge local history with remote, and push resulting history\n\n### Subcommands\n\nSubcommands can be used to do individual steps on the repository.\n\nFormat: ```histsync [subcommand]```\n\nCommand                 | Description\n------------------------|---\n```clone \u003crepository\u003e```      | Clone a repository to ```ZSH_HISTSYNC_REPO```\n```commit```                  | Commit the current history file\n```help```                    | Print usage information\n```pull```                    | Pull from remote and merge current history\n```push```                    | Push committed history to remote\n\n### Variables\n\nTo override the default options, export the associated variable in your ```zshrc```\n\nVariable                 | Description\n------------------------|---\n```ZSH_HISTSYNC_FILE_NAME```  | Name to save history as in repository\n```ZSH_HISTSYNC_REPO```       | zsh histsync repo location\n```GIT_COMMIT_MSG```          | Commit message\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnramsden%2Fzsh-histsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnramsden%2Fzsh-histsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnramsden%2Fzsh-histsync/lists"}