Created
November 16, 2021 12:10
-
-
Save photonbit/69c7807b94e65a82e127525467034627 to your computer and use it in GitHub Desktop.
Cheat sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.