{"id":31628218,"url":"https://github.com/malewicz1337/locus","last_synced_at":"2026-04-05T21:01:33.900Z","repository":{"id":317081265,"uuid":"1062093835","full_name":"malewicz1337/locus","owner":"malewicz1337","description":"A smart command-line history navigator that's directory-aware. Locus logs your shell commands with their corresponding directory, letting you find and re-run them with an easy interactive interface (locus -i). Stop searching your global history and find commands where you actually ran them.","archived":false,"fork":false,"pushed_at":"2025-09-22T20:14:06.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-15T13:37:06.208Z","etag":null,"topics":["cli","command-history","command-line","developer-tools","directory-history","shell","shell-history","terminal","tui","zsh"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malewicz1337.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-22T19:52:24.000Z","updated_at":"2025-10-05T00:10:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8f9ffac-9773-4fca-9fc1-788054ceed5f","html_url":"https://github.com/malewicz1337/locus","commit_stats":null,"previous_names":["malewicz1337/locus"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/malewicz1337/locus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malewicz1337%2Flocus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malewicz1337%2Flocus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malewicz1337%2Flocus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malewicz1337%2Flocus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malewicz1337","download_url":"https://codeload.github.com/malewicz1337/locus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malewicz1337%2Flocus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31449836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"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":["cli","command-history","command-line","developer-tools","directory-history","shell","shell-history","terminal","tui","zsh"],"created_at":"2025-10-06T20:20:24.364Z","updated_at":"2026-04-05T21:01:33.894Z","avatar_url":"https://github.com/malewicz1337.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Locus \n\n**Your shell history, but organized by directory.**\n\nLocus is a command-line tool that supercharges your shell history. It logs every command you run along with its directory, so you can instantly find and re-execute commands specific to your current project. Stop searching through an endless global history and find what you need, right where you ran it.\n\n---\n\n## Features\n\n* **Directory-Aware History**: Automatically logs commands with the directory they were run in. No more guessing where you ran that `git` or `docker` command.\n* **Interactive UI**: Launch a fast, interactive history explorer (`locus -i`) for the current directory. Navigate with arrow keys, see a live preview, and execute with `Enter`.\n* **Accurate Logging**: Uses a robust shell hook instead of parsing `.bash_history` or `.zsh_history`, ensuring every command is captured reliably.\n* **Simple Setup**: A one-time command (`locus --setup`) generates the necessary hooks for both Bash and Zsh.\n* **Powerful Filtering \u0026 Stats**: List commands, limit results (`-l`), include subdirectories (`-a`), and even view usage statistics with graphs (`-c`).\n\n---\n\n## Getting Started\n\n### 1. Run the Setup Command\n\nFirst, run the automatic setup command. This will create the necessary configuration and hook script in `~/.locus/`.\n\n```bash\nlocus --setup\n```\n\n### 2. Update Your Shell Configuration\n\nNext, add the hook to your shell's configuration file so it loads automatically.\n\n```bash\n# For Bash:\necho 'source ~/.locus/hook.sh' \u003e\u003e ~/.bashrc\n\n# For Zsh:\necho 'source ~/.locus/hook.sh' \u003e\u003e ~/.zshrc\n```\n\nFinally, restart your shell or source the file to apply the changes:\n\n```bash\n# For Bash\nsource ~/.bashrc\n\n# For Zsh\nsource ~/.zshrc\n```\n\n\nThat's it! Locus will now log your commands in the background.\n\n## Usage\nOnce set up, you can call locus from any directory to see its history.\n\n```bash\nlocus           # List commands in current directory\nlocus -i        # Interactive navigation mode ⭐\nlocus -c        # Show command statistics with graphs\nlocus -l 10     # Limit to 10 results\nlocus -a        # Include subdirectories\n```\n\n### Interactive Mode (locus -i)\nThis is the core feature of Locus. It provides a clean, minimal UI to browse and re-run commands.\n\n- **Navigate**: Use ↑ and ↓ arrow keys to move through the history.\n\n- **Execute**: Press Enter to run the currently selected command.\n\n- **Exit**: Press q or Ctrl+C to quit.\n\nTry locus --setup first, then locus -i for the interactive experience. 🎉\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n4. Submit a pull request\n   \n## License\nThis project is open source and available under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalewicz1337%2Flocus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalewicz1337%2Flocus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalewicz1337%2Flocus/lists"}