Bash Insulter is a funny CLI tool that insults you randomly when you type a wrong command. It can bring out a smile on these long working days. This tool is open-source and its code is available in the official Github repository.
Open your terminal and execute this commands separately:
git clone https://github.com/hkbakke/bash-insulter.git bash-insulter sudo cp bash-insulter/src/bash.command-not-found /etc
Add the following to /etc/bash/bash.rc to have the tool working on future logins:
if [ -f /etc/bash.command-not-found ]; then . /etc/bash.command-not-found fi
I recommend adding it at the end of the file and leaving a comment to identify what those lines are. You should have something like this:
Re-login and start typing some wrong commands to see the magic :-)
You'll note that sometimes it won't insult. Don't worry, that's normal, Linux isn't always angry.
You can add/delete/edit insults as you want. Just edit /bash-insulter/src/bash.commant-not-found
For example, I'll remove all the default insults and add my own ones. All you have to do is add/remove/edit the strings in local INSULTS=(...)
Then, execute again this command:
sudo cp bash-insulter/src/bash.command-not-found /etc
Re-login and the new insults will be available: