{"id":19999234,"url":"https://github.com/lennardv2/ehh","last_synced_at":"2025-05-04T14:31:31.374Z","repository":{"id":57723286,"uuid":"328668552","full_name":"lennardv2/ehh","owner":"lennardv2","description":"Commandline tool for remembering linux/terminal commands","archived":false,"fork":false,"pushed_at":"2022-08-22T08:03:38.000Z","size":51,"stargazers_count":80,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-08T07:38:58.134Z","etag":null,"topics":["bash","linux","osx","remember","terminal","utility"],"latest_commit_sha":null,"homepage":"","language":"Python","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/lennardv2.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}},"created_at":"2021-01-11T13:12:56.000Z","updated_at":"2025-04-03T13:54:56.000Z","dependencies_parsed_at":"2022-09-26T21:51:30.126Z","dependency_job_id":null,"html_url":"https://github.com/lennardv2/ehh","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lennardv2%2Fehh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lennardv2%2Fehh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lennardv2%2Fehh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lennardv2%2Fehh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lennardv2","download_url":"https://codeload.github.com/lennardv2/ehh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252349617,"owners_count":21733863,"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":["bash","linux","osx","remember","terminal","utility"],"created_at":"2024-11-13T05:11:08.313Z","updated_at":"2025-05-04T14:31:31.061Z","avatar_url":"https://github.com/lennardv2.png","language":"Python","funding_links":[],"categories":["\u003ca name=\"cheatsheet\"\u003e\u003c/a\u003eCommands cheatsheet and snippets"],"sub_categories":[],"readme":"# ehh\n\n\u003cimg width=\"832\" alt=\"ehh\" src=\"https://user-images.githubusercontent.com/168357/185814580-8aa6dea4-b36a-4ef5-900f-12c0152e84b6.png\"\u003e\n\n## Remember linux commands\nTired of forgetting bash/linux/osx commands?\n\nStore and run any command inside ```ehh```. \n\n```pipx install ehh ```\n\n## Why not just alias or ctrl+r?\nWell, ehh provides:\n* An organized list of aliases\n* List groups\n* List filtering\n* Support for vars, which are prompted on run\n* Easy way to add an alias\n\n## Features\nhttps://user-images.githubusercontent.com/168357/185811288-a5767eb8-3da9-46eb-a9a7-5b45fab97513.mp4\n\n* Store commands like ``sudo lsof -iTCP -sTCP:LISTEN -n -P`` (osx) under an alias like ``sys.ports``\n* Add a description to your command ``Check Listening Ports``\n* Run the command by alias ``ehh sys.ports`` or by index ``ehh 23``\n* Show a list of all stored commands by typing ``ehh``\n* Filter the list of stored commands by typing ``ehh {query}``. ``ehh sys`` will show all commands in the sys namespace.\n\nhttps://user-images.githubusercontent.com/168357/185811458-d383212a-dc37-4f46-9abe-bcf708509496.mp4\n\n* Add vars to a commmand by using ``(:var_name)``. For example: ``find \"$(pwd)\" -name (:search) 2\u003e/dev/null`` will prompt for a search query to search in the current directory (osx)\n* All commands are stored inside ``~/ehh.yaml``\n* See ``ehh help`` for more info\n\n# Installation\n\n## Via [pipx](https://pypa.github.io/pipx/)\n\n```\npipx install ehh\n```\n\n## Manual installation\n\n```\ncurl https://raw.githubusercontent.com/lvoogdt/ehh/main/ehh/cli.py -o ehh.py \u0026\u0026 chmod +x ehh.py\n```\n\nAdd it to your path:\n```\nsudo ln -s $(pwd)/ehh.py /usr/local/bin/ehh\n```\n\nInstall python libs:\n```\npip install colorama click pyyaml\n```\n\nIf you want to start with some commands you can use the example ehh.yaml. The commands in this file are linux based.\n\n```\ncurl https://raw.githubusercontent.com/lvoogdt/ehh/main/ehh/ehh.yaml -o ehh.yaml \u0026\u0026 mv ehh.yaml ~/ehh.yaml\n```\n\n\n# Examples\n\n```\n$ ehh add\n\u003e Command: sudo usermod -a -G (:group) (:user)\n\u003e Description: Add a user to a group\n\u003e Group (optional):\n\u003e Alias (optional): user.group\n\n$ ehh    # Get a list\n\u003e 1   sudo usermod -a -G (:group) (:user)     user.group          Add a user to a group\n\n$ ehh 1\n\u003e user: john\n\u003e group: docker\n(Command sudo usermod -a -G docker john is ran)\n\n$ ehh user.group     # Using the lias\n\u003e user: john\n\u003e group: docker\n(Command sudo usermod -a -G docker john is ran)\n\n```\n\n# Docs\n\n```\n$ ehh add\n```\n\nEnter the command you want to store, a description and an optional group.\n\n```\n$ ehh ls QUERY?\n```\n\nList your commands with an index and description. Add an optional QUERY to filter the list.\n\n```\n$ ehh run INDEX|ALIAS\nOR\n$ ehh INDEX (less typing)\nOR\n$ ehh ALIAS\n\nif ehh INDEX|ALIAS fails, it return the list filtered by query\n```\n\nRun your command by index. It's also possible to use an alias, it will loop through the matches and ask for it to be run.\n\n```\n$ ehh get INDEX\n```\n\nGet all the details of the command\n\n\n```\n$ ehh rm INDEX\n```\n\nRemove command by index\n\n\n[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Flvoogdt%2Fehh\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026icon=\u0026icon_color=%23E7E7E7\u0026title=hits\u0026edge_flat=false)](https://hits.seeyoufarm.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flennardv2%2Fehh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flennardv2%2Fehh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flennardv2%2Fehh/lists"}