wandroulette

Get insulted by one man army wandre.
wandre will insult the user when they type a wrong command.

⚠️ This is a private joke at School 42 Paris.

dog pic

Table of content

Get wandred

Done for zsh to be used at school 42 or inside 42's VM.

Oh yeah insult me wandre

  1. Get the file.
# Method 1
curl https://raw.githubusercontent.com/matboivin/wandroulette/main/zsh.command-not-found -o /etc/zsh.command-not-found

# Method 2
git clone https://github.com/matboivin/wandroulette.git
sudo cp wandroulette/zsh.command-not-found /etc/
  1. Add the following lines to your .zshrc file:
# wandre mode

if [ -f /etc/zsh.command-not-found ]; then
	. /etc/zsh.command-not-found
	echo "Warning /!\\ The wandre mode is activated!"
	echo "\n  $(tput bold)$(tput setaf 1)wandre:$(tput sgr0) hi ${USER} :)\n"
fi

The # wandre mode comment is here to find these lines again more easily if needed.

  1. Source your .zshrc file. In your terminal, run:
source ~/.zshrc

Stop it wandre!

In your terminal, run:

if [ -f /etc/zsh.command-not-found ]; then
	if sudo rm /etc/zsh.command-not-found; then
		echo "wandre mode deactivated"
		echo "\n  $(tput bold)$(tput setaf 1)wandre:$(tput sgr0) bye ${USER} :)\n"
	fi
else
	echo "/etc/zsh.command-not-found doesn't exist"
fi

Future improvements

bash version

Bugs

Found bugs? 🪲 Feel free to open an issue or a PR.

Acknowledgements 🌈

crebert for the wonderful "Get wandred" pun.
wandre for the legendary RTFM attitude.

Credits

This project exists thanks to hkbakke's bash-insulter.

Also based on matmutant's zsh-insulter.