DEV Community


McLear: From typo to a fun alias 🍔🍟

Ryan Lynch (he/him)
I solve computer problems as a dev, human problems as a teacher
・1 min read

I mistakenly typed mclear in place of clear in my zsh terminal, and came up with a fun alias! Enjoy!

alias mclear='FOOD=(🍔 🍟); for i in {1..10000}; do printf "${FOOD[($RANDOM % ${#FOOD[@]}) + 1]}"; done'
Enter fullscreen mode Exit fullscreen mode

The alias in action!

Discussion (0)