Home

Awesome

ehh

<img width="832" alt="ehh" src="https://user-images.githubusercontent.com/168357/185814580-8aa6dea4-b36a-4ef5-900f-12c0152e84b6.png">

Remember linux commands

Tired of forgetting bash/linux/osx commands?

Store and run any command inside ehh.

pipx install ehh

Why not just alias or ctrl+r?

Well, ehh provides:

Features

https://user-images.githubusercontent.com/168357/185811288-a5767eb8-3da9-46eb-a9a7-5b45fab97513.mp4

https://user-images.githubusercontent.com/168357/185811458-d383212a-dc37-4f46-9abe-bcf708509496.mp4

Installation

Via pipx

pipx install ehh

Manual installation

curl https://raw.githubusercontent.com/lvoogdt/ehh/main/ehh/cli.py -o ehh.py && chmod +x ehh.py

Add it to your path:

sudo ln -s $(pwd)/ehh.py /usr/local/bin/ehh

Install python libs:

pip install colorama click pyyaml

If you want to start with some commands you can use the example ehh.yaml. The commands in this file are linux based.

curl https://raw.githubusercontent.com/lvoogdt/ehh/main/ehh/ehh.yaml -o ehh.yaml && mv ehh.yaml ~/ehh.yaml

Examples

$ ehh add
> Command: sudo usermod -a -G (:group) (:user)
> Description: Add a user to a group
> Group (optional):
> Alias (optional): user.group

$ ehh    # Get a list
> 1   sudo usermod -a -G (:group) (:user)     user.group          Add a user to a group

$ ehh 1
> user: john
> group: docker
(Command sudo usermod -a -G docker john is ran)

$ ehh user.group     # Using the lias
> user: john
> group: docker
(Command sudo usermod -a -G docker john is ran)

Docs

$ ehh add

Enter the command you want to store, a description and an optional group.

$ ehh ls QUERY?

List your commands with an index and description. Add an optional QUERY to filter the list.

$ ehh run INDEX|ALIAS
OR
$ ehh INDEX (less typing)
OR
$ ehh ALIAS

if ehh INDEX|ALIAS fails, it return the list filtered by query

Run 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.

$ ehh get INDEX

Get all the details of the command

$ ehh rm INDEX

Remove command by index

Hits