Skip to content

Instantly share code, notes, and snippets.

@justinyanme
Last active February 28, 2024 06:16
Show Gist options
  • Save justinyanme/62ab86fa7c0361eefc0c20b4b19fe2f5 to your computer and use it in GitHub Desktop.
Save justinyanme/62ab86fa7c0361eefc0c20b4b19fe2f5 to your computer and use it in GitHub Desktop.
# brew install figlet cowsay lolcat coreutils fortune
echo "Justin" | figlet -f starwars | lolcat --animate -s 1000
fortune -s | cowsay -f $(cd /opt/homebrew/Cellar/cowsay/3.04_1/share/cows && ls *.cow | shuf -n1) | lolcat --animate -s 1000
@leo9827
Copy link

leo9827 commented Feb 27, 2024

将 Unixeno 的随机加入到 motd.sh 之后的 script 如下

vi motd.sh

copy and paste

# brew install figlet cowsay lolcat coreutils fortune

echo "Justin" | figlet -f starwars | lolcat --animate -s 1000
fortune -s | cowsay -f $(cowsay -l | tail -n +2 | tr ' ' '\n' | shuf -n1) | lolcat --animate -s 1000

add to .zshrc or .bashrc

chmod u+x motd.sh
echo 'source motd.sh' >> .zshrc

enjoy~

@justinyanme
Copy link
Author

@leo9827 👍

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