Skip to content

Instantly share code, notes, and snippets.

@photonbit
Created November 16, 2021 12:10
Show Gist options
  • Save photonbit/69c7807b94e65a82e127525467034627 to your computer and use it in GitHub Desktop.
Save photonbit/69c7807b94e65a82e127525467034627 to your computer and use it in GitHub Desktop.
Cheat sheet
mkdir -p "$HOME/bin"
curl https://cht.sh/:cht.sh > "$HOME/bin/cht.sh"
chmod +x "$HOME/bin/cht.sh"
curl https://cheat.sh/:bash_completion > "$HOME/.cheat.completion"
echo 'source $HOME/.cheat.completion' >> "$HOME/.bashrc"
grep "HOME/bin" .bashrc > /dev/null || grep "$(whoami)/bin" .bashrc > /dev/null || echo 'PATH=$PATH:$HOME/bin' >> .bashrc
@photonbit
Copy link
Author

Run that thing in your terminal (you should be using bash) and either source ~/.bashrc or open a new terminal.

You can use now cheat.sh git soft reset for example.

Or even you can write cheat.sh aws and instead of Enter, hit Tab twice to see the main available topics.

It is fast, concise and you don't need to leave the terminal to get exactly the information you need to keep going.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment