Skip to content

Instantly share code, notes, and snippets.

@jcefoli
Last active July 30, 2024 04:36
Show Gist options
  • Save jcefoli/2932472a6fb12fc2fc4a11decfe67989 to your computer and use it in GitHub Desktop.
Save jcefoli/2932472a6fb12fc2fc4a11decfe67989 to your computer and use it in GitHub Desktop.
LolBanner Setup Script (Debian) - Create colorful text banners using the 3d.flf font, figlet and lolcat (wrapped by a bash function called lolcat)
#!/usr/bin/env bash
sudo apt install figlet lolcat --no-install-recommends -y
mkdir -p ~/.local/share/fonts
wget https://raw.githubusercontent.com/xero/figlet-fonts/master/3d.flf -P ~/.local/share/fonts/
cat << 'EOF' >> ~/.bashrc
# Function to display a banner using figlet and lolcat
lolbanner() {
echo
figlet -f ~/.local/share/fonts/3d.flf "$@" | lolcat
echo
}
EOF
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment