Skip to content

Instantly share code, notes, and snippets.

@sudermanjr
Created September 4, 2025 22:25
Show Gist options
  • Select an option

  • Save sudermanjr/4ff52beb93be62b044c168887b0a78e8 to your computer and use it in GitHub Desktop.

Select an option

Save sudermanjr/4ff52beb93be62b044c168887b0a78e8 to your computer and use it in GitHub Desktop.
Collection of harmless bash pranks and terminal fun

Harmless Bash Pranks & Terminal Fun 🎭

A collection of fun, harmless bash tricks and pranks that won't break anything!

🌈 Colorful Output

# Rainbow text
echo -e "\033[31mR\033[32ma\033[33mi\033[34mn\033[35mb\033[36mo\033[37mw\033[0m Text!"

# Blinking text
echo -e "\033[5mThis text blinks!\033[0m"

# Bold and underlined
echo -e "\033[1m\033[4mBold and underlined!\033[0m"

⏳ Fake Progress Bars

# Simple progress bar
for i in {1..50}; do
    echo -ne "Progress: [$(printf "%${i}s" | tr ' ' '=')]$(printf "%$((50-i))s" | tr ' ' ' ') $((i*2))%\r"
    sleep 0.1
done
echo

# Fake installation
echo "Installing awesome_package..."
for i in {1..100}; do
    echo -ne "Installing: $i%\r"
    sleep 0.05
done
echo -e "\nInstallation complete! πŸŽ‰"

🎲 Random Fun

# Random excuse generator
excuses=("The dog ate my code" "Solar flares interfered with my WiFi" "My rubber duck stopped talking to me" "I was abducted by aliens" "The coffee machine is broken")
echo "Excuse of the day: ${excuses[$RANDOM % ${#excuses[@]}]}"

# Magic 8-ball
answers=("Yes definitely" "Ask again later" "Very doubtful" "Outlook good" "Don't count on it" "Most likely")
echo "Magic 8-ball says: ${answers[$RANDOM % ${#answers[@]}]}"

πŸŽͺ Terminal "Effects"

# Fake matrix code (simplified)
while true; do
    echo $(printf "%$((COLUMNS))s" | tr ' ' '01')
    sleep 0.1
done

# Typewriter effect
text="This text appears like a typewriter!"
for (( i=0; i<${#text}; i++ )); do
    echo -n "${text:$i:1}"
    sleep 0.1
done
echo

# Countdown timer
for i in {10..1}; do
    echo -ne "Launch in: $i \r"
    sleep 1
done
echo "πŸš€ Blast off!"

🎭 Harmless Aliases (Add to .bashrc)

# Make cat meow
alias cat='echo "Meow! 🐱"; cat'

# Polite commands
alias please='sudo'
alias thanks='echo "You'\''re welcome! 😊"'

# Fun ls variations
alias ll='ls -la && echo "Files listed with love ❀️"'
alias la='ls -la | lolcat'  # Requires lolcat package

🎨 ASCII Art Generator

# Simple banner
figlet "PRANKED!" 2>/dev/null || echo "
 ____  ____   _    _   _ _  _______ ____  
|  _ \|  _ \ / \  | \ | | |/ / ____|  _ \ 
| |_) | |_) / _ \ |  \| | ' /|  _| | | | |
|  __/|  _ < ___ \| |\  | . \| |___| |_| |
|_|   |_| \_\_/  \_\_| \_|_|\_\_____|____/ 
"

# Birthday surprise
echo "
πŸŽ‚ Happy Birthday! πŸŽ‚
$(date '+It'\''s %A, %B %d, %Y')
Hope your code compiles on the first try today!
"

πŸ”§ Usage Tips

  1. Test safely: These are all harmless and won't damage your system
  2. Temporary fun: Most effects can be stopped with Ctrl+C
  3. Share responsibly: Use these for fun, not to annoy people
  4. Restore normalcy: Use reset command to clear terminal effects

🎯 Advanced Pranks

# Fake system info
echo "System Status:"
echo "CPU Temperature: $((RANDOM % 20 + 30))Β°C"
echo "Memory Usage: $((RANDOM % 50 + 30))%"
echo "Disk Space: $((RANDOM % 90 + 5))% free"
echo "WiFi Strength: $((RANDOM % 4 + 1))/5 bars"

# Motivational terminal
quotes=("You're doing great!" "Keep coding!" "Debug like a detective!" "Coffee time?" "One more commit!")
echo "πŸ’ͺ Daily motivation: ${quotes[$RANDOM % ${#quotes[@]}]}"

# Fake weather report
weather=("Sunny with a chance of bugs" "Cloudy with scattered semicolons" "Heavy rain of coffee required" "Partly cloudy with 100% chance of coding")
echo "🌀️ Coding weather: ${weather[$RANDOM % ${#weather[@]}]}"

Remember: These are all for fun and completely harmless! Enjoy responsibly! πŸŽ‰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment