{"id":27439624,"url":"https://github.com/subsetpark/untitled-shell-history-application","last_synced_at":"2026-05-05T12:31:24.431Z","repository":{"id":77776022,"uuid":"97907675","full_name":"subsetpark/untitled-shell-history-application","owner":"subsetpark","description":"A (marginally) more useful shell command history.","archived":false,"fork":false,"pushed_at":"2022-05-17T21:44:10.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T18:48:05.576Z","etag":null,"topics":["shell"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/subsetpark.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,"zenodo":null}},"created_at":"2017-07-21T05:00:56.000Z","updated_at":"2022-05-17T21:44:13.000Z","dependencies_parsed_at":"2023-04-12T23:32:18.487Z","dependency_job_id":null,"html_url":"https://github.com/subsetpark/untitled-shell-history-application","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/subsetpark/untitled-shell-history-application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsetpark%2Funtitled-shell-history-application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsetpark%2Funtitled-shell-history-application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsetpark%2Funtitled-shell-history-application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsetpark%2Funtitled-shell-history-application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subsetpark","download_url":"https://codeload.github.com/subsetpark/untitled-shell-history-application/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsetpark%2Funtitled-shell-history-application/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["shell"],"created_at":"2025-04-14T21:59:51.842Z","updated_at":"2026-05-05T12:31:24.423Z","avatar_url":"https://github.com/subsetpark.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `U.S.H.A.`:\n\n## Untitled Shell History Application\n\n```\nusha: search your command-line history.\n\nUsage:\n  usha init [-v]\n  usha clean [DAYS]\n  usha update [-v] CMD [-c CHECKSUM]\n  usha [DIR] [-n N] [-tvrs SEARCHSTRING]\n\nOptions:\n  DIR             Directory to search within.\n  CMD             Insert command into database.\n  DAYS            Number of days of history to preserve. [default: 60]\n  -n N            Retrieve the N most common commands. [default: 5]\n  -s SEARCHSTRING Search for commands containing a string.\n  -t              Order by most recently entered.\n  -v              Verbose.\n  -r              Recurse current directory.\n  -c CHECKSUM     Optional argument to update to prevent duplication.\n```\n\n`usha` was inspired by Denis Gladkikh's [DBHist][] post and shell script. It has few innovations over that script; mostly, it seemed like a fun project and I wanted to make my own. But I also don't use bash and wanted a shell-agnostic equivalent to Denis's program.\n\n[DBHist]: https://www.outcoldman.com/en/archive/2017/07/19/dbhist/\n\nAs such `usha` is a standalone binary which you should put into the right part of your shell loop. It expects to be called with `update` in order to add new items to its history table. For instance, as a part of my `prompt()` routine in my shell, I call `usha update` with the most recent item in my shell's history.\n\nI also have `hh` (*history here*) aliased to `usha .`, meaning 'show me the 5 most common commands that I have run in this directory.'\n\n`usha` looks for the presence of a `.ushaignore` file in the user's home directory, which should contain a list of commands to ignore. Currently it doesn't support wildcards. Here's mine:\n\n```\nexit\nz\nls\ncd\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubsetpark%2Funtitled-shell-history-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubsetpark%2Funtitled-shell-history-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubsetpark%2Funtitled-shell-history-application/lists"}