DEV Community 👩‍💻👨‍💻

Ryan Lynch (he/him)
Ryan Lynch (he/him)

Posted on

McLear: From typo to a fun alias 🍔🍟

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!

Top comments (0)

Let's Get Wacky

Use any Linode offering to create something unique or silly in the DEV x Linode Hackathon 2022 and win the Wacky Wildcard category

→ Join the Hackathon <-