{"id":15211189,"url":"https://github.com/lollipopkit/shtg","last_synced_at":"2025-08-16T05:31:44.524Z","repository":{"id":153671725,"uuid":"626915296","full_name":"lollipopkit/shtg","owner":"lollipopkit","description":"Tidy \u0026 Sync your shell (zsh / fish) histories.","archived":false,"fork":false,"pushed_at":"2024-07-14T15:27:54.000Z","size":42,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-09T10:45:02.815Z","etag":null,"topics":["fish","shell","tools","zsh"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lollipopkit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-12T12:16:30.000Z","updated_at":"2024-07-14T15:21:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"f23b3817-b1ae-4659-b4cb-fc18a98d8d90","html_url":"https://github.com/lollipopkit/shtg","commit_stats":{"total_commits":20,"total_committers":3,"mean_commits":6.666666666666667,"dds":0.09999999999999998,"last_synced_commit":"926e26afef89ef471a1ed3984c6f1cb223fa8b52"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/lollipopkit/shtg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lollipopkit%2Fshtg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lollipopkit%2Fshtg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lollipopkit%2Fshtg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lollipopkit%2Fshtg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lollipopkit","download_url":"https://codeload.github.com/lollipopkit/shtg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lollipopkit%2Fshtg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270670696,"owners_count":24625594,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["fish","shell","tools","zsh"],"created_at":"2024-09-28T08:20:50.825Z","updated_at":"2025-08-16T05:31:44.261Z","avatar_url":"https://github.com/lollipopkit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Shell History Tool\n\n### Features\n- [x] Support zsh / fish\n- [x] Sync history between multiple shells\n- [x] Tidy history using `duplicate` / `regexp` / `duration` / `last`\n\n### Usage\nCommon usage:\n```bash\n# remove duplicate history\nshtg dup\nshtg d\n# rm previous cmd\nshtg previous\nshtg p\n# remove history with regexp pattern\nshtg re 'pattern'\n# remove history with duration\nshtg recent 7h # 7 hours\nshtg r 3d # 3 days\n# remove last N history (include itself)\nshtg last 10\nshtg l 3\n# you can specify the shell\nshtg -t zsh dup\n# or dry-run\nshtg -d dup\n```\n\nDetails:\n```\n\u003e shtg\nNAME:\n   shtg - Shell History Tool written in Go\n\nUSAGE:\n   shtg [global options] command [command options] [arguments...]\n\nCOMMANDS:\n   dup, d       Remove duplicate history\n   re           Remove history which match regex\n   recent, r    Remove history in duration\n   previous, p  Remove previous cmd\n   last, l      Remove last N cmd\n   sync, s      Sync history between zsh / fish\n   restore, rs  Restore history from previous backup\n   help, h      Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --shell value, -s value  fish / zsh\n   --dry, -d                without write to file (default: false)\n   --help, -h               show help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flollipopkit%2Fshtg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flollipopkit%2Fshtg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flollipopkit%2Fshtg/lists"}