Skip to content

Instantly share code, notes, and snippets.

@darko-mesaros
Created May 28, 2020 11:32
Show Gist options
  • Save darko-mesaros/0035d395c5bb91208a0a4280325dff9a to your computer and use it in GitHub Desktop.
Save darko-mesaros/0035d395c5bb91208a0a4280325dff9a to your computer and use it in GitHub Desktop.
Lolbanner alias / function that shows some colorfull text
function lolbanner
echo
figlet -c -f ~/.local/share/fonts/figlet-fonts/3d.flf $argv | lolcat
echo
end
@a0s
Copy link

a0s commented Jul 26, 2023

Test all fonts

#!/bin/bash

set -e
trap "exit" INT

TEST_TEXT="Hello, world"

for FONT_PATH in ~/.local/share/fonts/figlet-fonts/*
do
    if figlet -I -f $FONT_PATH &> /dev/null; then
        FONT_NAME=$(basename "$FONT_PATH")
        echo $FONT_PATH
        figlet -c -f "$FONT_PATH" "$TEST_TEXT" | lolcat
        echo
    fi
done

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