meine
meine 🌒 - A CLI file manager and system utility built with Textual. It combines intuitive command parsing with rich t…
Cheatshh is a CLI tool to store commands and their descriptions in a place you can look into as cheatshheat so you dont…
git clone https://github.com/AnirudhG07/cheatshh.gitAnirudhG07/cheatshhCheatshh is an interactive CLI meant for managing command line cheatsheets, written in shell script. Now you don't have to remember CLI commands and just refer your cheatsheet. You can group commands and view their TLDR(or anyother) and MAN pages along with a custom description for the command.
Note: This software is tested on and initially configured for MacOS. Please check out the [configuration documentation] to set it up for your system.
The following installation guidelines hold for Linux and MacOS.
You can download cheatshh through following ways- (more will be added soon)
Before running the below commands, make sure your dependencies are satisfied. See the DEPENDENCIES section for more info. From your command line, run-
pip install cheatshh
This will create ~/.config/cheatshh in your home directory. Now simply run-
cheatshh
and you are done. Use various options to add, edit and delete commands and groups.
This tool can also be installed using Homebrew(for MacOS only). You can install it by tapping my homebrew-tap repo and installing the tool.
brew install AnirudhG07/AnirudhG07/cheatshh
You can now run the tool by running cheatshh -h in your terminal. If you are facing issues, try running-
brew tap AnirudhG07/AnirudhG07 brew install cheatshh
Make sure you have Homebrew installed in your MacOS and it is updated which can be done by running brew update.
You can setup manual installation with the following guidelines-
git clone https://github.com/AnirudhG07/cheatshh
cd ~/cheatshh
pip install -r requirements.txt
poetry installed which will be required to build the project. If not you can run either of the below commands-pip install poetry # OR curl -sSL https://install.python-poetry.org | python -
This will download peotry. Now you can proceed to the next step.
pip install .
Now you should be able to use the tool by running cheatshh in your terminal. Feel free to raise an issue if any error comes up.
For Windows, you can use Virtual Machines of Linux, or change configurations manually.
From version >= 1.1.1, the configurations for having
cheatshhon Windows has greatly been improved.
Change the path to directory ~/.config/cheatshh to absolute/path/to/your/directory/cheatshh, by using grep command in the cheatshh directory, in cheatshh.toml and cheats.sh only at the one place.
This should run cheatshh appropriately. Make sure the dependencies are installed, since they are easily available for Unix applications.
You can create custom groups using-
cheatshh -g
We also have premade libraries of groups here which you can download with the instructions given there itself.
We welcome you to publish your own libraries for everyone to see.
Bookmarking let's you save your command in the main preview despite them being present in a group.
You can bookmark a command by pressing Enter and selecting Bookmark. Now you don't need to find it in a group and access it in the main preview.
You can always remove Bookmark of a command by pressing Enter and selecting Remove Bookmark.
Cheatshh uses the following as its main tools. Ensure that these are pre-installed in your computer.
In MacOS, you can use HomeBrew to install the above packages with-
brew install <package>
For MacOS & Linux both, you can run the following command to download the packages.
sudo apt install <package>
For Windows, you can use your favourite package manager or download from their website itself.
You can change various configurations of cheatshh like colors, automatic man page display, usages of other cheatsheets like tldr, cheats.sh, etc. You can do this by going to the cheatshh/cheatshh.toml file and changing the values as per your needs.
NOTE: All the instructions on how to change suitably is mentioned within the file itself. If you are facing any issues, feel free to raise an issue.
When you have configured your cheatshh, you would definitely want to save them. If you want to use cheatshh in some different machine without rewriting again(cause that's a lot of trouble). Here's how you can save it.
Your_handle/cheatshh or any other name. You can also add it to your repo where you are storing your dot files.stow command to configure everything in an instant. Here's the layout of the directory if you will use stow-cheatshh
└─── .config
└── cheatshh
├── cheats.sh
├── commands.json
├── groups.json
└── any/other/file
Now you can simply download this directory, run stow cheatshh, this will setup your cheatshh in the .config/cheatshh as it should be.
OR you can manually set it up, in that case you don't need the above tree, you can simply use have the last level of tree inside cheatshh directory.
Don't forget to make setup.sh executable.
jq and yq, please try the following first -.config/cheatshh in the cheatshh.toml and cheats.sh file as pointed for Windowsjq and yq installed.sudo <command-name>
This might be needed in the case for man page display or maybe for installation of dependency.
WARNING: The script cheatshh is installed in '/home/admin/.local/bin' which is not on PATH. error comes, then cheatshh script has to be included in the system PATH, you can add the following lines to the appropriate shell configuration.export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
After adding these lines, either restart your terminal or run source on the respective configuration file to apply the changes. For example:
source ~/.bashrc # For Bash source ~/.zshrc # For Zsh
This should add the path in your shell-rc file and you should be able to run.
Note: If you are using some other shell like fish or any similar other, configure the settings accordingly. Using Fish is not recommended for this tool.
Cheatshh is an interactive, easy CLI tool to maintain your custom cheatsheets. You can check our the docs to see how to use cheatshh.
I would love to take contributions from the community! If you have suggestions for new cheatsheets, improvements to existing ones, or bug fixes, please feel free to submit a pull request.
group field should be "yes", bookmark field should be "no".Check out my Yazi File manager plugin for cheatshh at cheatshh.yazi. You can save your yazi shell commands and easily access them within Yazi.
more like this
meine 🌒 - A CLI file manager and system utility built with Textual. It combines intuitive command parsing with rich t…
search projects, people, and tags