{"id":41723965,"url":"https://github.com/ttauveron/histt","last_synced_at":"2026-01-24T22:58:18.443Z","repository":{"id":229524624,"uuid":"776957193","full_name":"ttauveron/histt","owner":"ttauveron","description":"A command-line tool designed to enhance your shell experience by providing an advanced history search.","archived":false,"fork":false,"pushed_at":"2024-04-24T23:34:53.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-01T20:31:48.413Z","etag":null,"topics":["bash","cli","command-history","golang","history","linux","macos"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ttauveron.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}},"created_at":"2024-03-24T22:29:26.000Z","updated_at":"2024-08-09T11:03:18.000Z","dependencies_parsed_at":"2024-04-25T00:31:45.946Z","dependency_job_id":"368d42f7-3223-47ab-ba47-90d46c342ab9","html_url":"https://github.com/ttauveron/histt","commit_stats":null,"previous_names":["ttauveron/histt"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ttauveron/histt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttauveron%2Fhistt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttauveron%2Fhistt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttauveron%2Fhistt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttauveron%2Fhistt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttauveron","download_url":"https://codeload.github.com/ttauveron/histt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttauveron%2Fhistt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28738979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T22:12:27.248Z","status":"ssl_error","status_checked_at":"2026-01-24T22:12:10.529Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["bash","cli","command-history","golang","history","linux","macos"],"created_at":"2026-01-24T22:58:17.677Z","updated_at":"2026-01-24T22:58:18.406Z","avatar_url":"https://github.com/ttauveron.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# histt\n\nThis project is a basic reimplementation of https://github.com/dvorka/hstr in Go.\nIt provides an easy and flexible way to work with command line history. With support for customizable history file locations and enhanced search capabilities, it streamlines the process of finding and managing past commands.\n\n![image](https://github.com/ttauveron/histt/assets/1558361/7fcbcfcc-2c52-4d6a-b077-894cfd50f952)\n\n## Features\n\n- *Customizable History File Location*: Set the history file location using the HISTORY_LOCATION environment variable, or rely on the default location at ~/.bash_history.\n- *Enhanced Search Capabilities*: Search your command history using exact matches, keywords, or regular expressions to quickly find what you need.\n- *Terminal UI*: A user-friendly terminal interface makes navigating and selecting command history straightforward.\n\n## Installation\n\nTo get started, browse https://github.com/ttauveron/histt/releases and download the executable for your system.\n\nAlternatively clone this repository and build the tool using Go:\n```\ngit clone https://github.com/ttauveron/histt.git\ncd histt\ngo build\n```\n\n### Cross-Compilation\n\n```\nGOOS=linux GOARCH=amd64 go build -o histt-linux-amd64 main.go\nGOOS=darwin GOARCH=arm64 go build -o histt-macos-arm64 main.go\n```\n\n## Configuration\n\nOptionally, you can configure the location of the history file by setting the `HISTORY_LOCATION` environment variable:\n```\nexport HISTORY_LOCATION=\"/path/to/your/history/file\"\n```\n\nIf `HISTORY_LOCATION` is not set, the tool defaults to using `~/.bash_history`.\n\nAdd the following configuration to your `.bashrc`:\n\n```\n# Append to the history file, don't overwrite it\nshopt -s histappend\n\n# Save multi-line commands as one command\nshopt -s cmdhist\n\n# Huge history. Doesn't appear to slow things down, so why not?\nHISTSIZE=500000\nHISTFILESIZE=10000000\n\n# Avoid duplicate entries\nHISTCONTROL=\"erasedups:ignoreboth\"\n\n# Ensure synchronization between Bash memory and history file\nexport PROMPT_COMMAND=\"history -a; history -n; ${PROMPT_COMMAND}\"\n# if this is interactive shell, then bind histt to Ctrl-r\nif [[ $- =~ .*i.* ]]; then bind '\"\\C-r\": \"\\C-a histt -- \\C-j\"'; fi\n```\n\n## Keyboard Shortcuts\n\n- *Ctrl+E*: Switch between exact matching, keyword search, and regex search modes.\n- *Ctrl+T*: Toggle case sensitivity for searches.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttauveron%2Fhistt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttauveron%2Fhistt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttauveron%2Fhistt/lists"}