{"id":13587578,"url":"https://github.com/jcsalterego/historian","last_synced_at":"2025-04-05T00:04:58.701Z","repository":{"id":38849608,"uuid":"87861446","full_name":"jcsalterego/historian","owner":"jcsalterego","description":"Command-line utility for managing shell history in a SQLite database.","archived":false,"fork":false,"pushed_at":"2024-02-11T23:37:24.000Z","size":19,"stargazers_count":547,"open_issues_count":0,"forks_count":27,"subscribers_count":13,"default_branch":"main","last_synced_at":"2024-06-11T19:16:37.027Z","etag":null,"topics":["history","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcsalterego.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-04-10T21:59:27.000Z","updated_at":"2024-08-01T16:33:37.485Z","dependencies_parsed_at":"2024-08-01T16:33:36.632Z","dependency_job_id":"e77f176d-d48f-467a-938a-84e60e6d6649","html_url":"https://github.com/jcsalterego/historian","commit_stats":{"total_commits":26,"total_committers":3,"mean_commits":8.666666666666666,"dds":"0.11538461538461542","last_synced_commit":"088efe07c2124f770e0ebe807b0bb5fa5da2aaf4"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsalterego%2Fhistorian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsalterego%2Fhistorian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsalterego%2Fhistorian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcsalterego%2Fhistorian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcsalterego","download_url":"https://codeload.github.com/jcsalterego/historian/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266563,"owners_count":20910836,"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":["history","shell"],"created_at":"2024-08-01T15:06:16.421Z","updated_at":"2025-04-05T00:04:58.670Z","avatar_url":"https://github.com/jcsalterego.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"historian\n=========\n\nCommand-line utility for managing shell history in a SQLite database.\n\n`~/.bash_history` is deduped and imported into a database.\n\n### Requirements\n\n* SQLite\n* a home directory\n\n### Installation\n\nDownload and 1) add the directory to your `$PATH`\n\n    export PATH=\"$PATH:/Users/jerry/historian\"\n\nor 2) add `hist` as an alias.\n\n    alias hist=\"/Users/jerry/historian/hist\"\n\n### Getting Started\n\nImport your `~/.bash_history`\n\n    $ hist import\n\n### Super Installation\n\nAdd `hist import` to your `.profile` (assuming `hist` is in your path):\n\n    $ echo hist import \u003e\u003e ~/.profile\n\nThis will import your .bash_history every time you launch a new shell.\n\n### Usage\n\nShow config:\n\n    $ hist config\n    version:      0.0.2\n    bash_history: /Users/jerry/.bash_history\n    db:           /Users/jerry/.historian.db\n    sqlite3:      /opt/local/bin/sqlite3\n\nSearch:\n\n    $ hist search monsters\n    690\n        echo a zombie with no conscience \u003e\u003e ~/monsters\n    689\n        echo ghoul \u003e\u003e ~/monsters\n    688\n        echo goblin \u003e\u003e ~/monsters\n    687\n        echo lochness \u003e\u003e ~/monsters\n\nSearch (shorthand):\n\n    $ hist /monsters\n    690\n        echo a zombie with no conscience \u003e\u003e ~/monsters\n    689\n        echo ghoul \u003e\u003e ~/monsters\n    688\n        echo goblin \u003e\u003e ~/monsters\n    687\n        echo lochness \u003e\u003e ~/monsters\n\nView log:\n\n    $ hist log\n    1020\n        rm -f README.md\n    1019\n        emacs README.md\n    1018\n        rm -rf .git\n\n### Pitfalls\n\nLive like your db file could be corrupted at any time.\n\nBe wary of running specially crafted `hist` commands or against\n`~/.bash_history` files.\n\n### Cool Things in the Future\n\n* `export` to append to `~/.bash_history`\n* `scrub` items from history\n* set or autodetect configs\n* other shells than bash\n* timestamp support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcsalterego%2Fhistorian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcsalterego%2Fhistorian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcsalterego%2Fhistorian/lists"}