rwxrob-dot/scripts/figl
Rob Muhlestein 2ea0289e9f Rebase
2022-02-09 02:29:05 -05:00

22 lines
434 B
Bash
Executable File

#!/usr/bin/env bash
# Set the figlet default font, font directory, and centering as well as
# defaults to passing it to lolcat for coloring.
figl() {
#font=${FIGL_FONT:-ansi-shadow}
font=${FIGL_FONT:-future}
#font=${FIGL_FONT:-calvin-s}
#clear
declare -a buf
while IFS= read -r line; do
buf+=("$line")
done
#clear
for line in "${buf[@]}"; do
figlet -f "$font" -c -t "${line}" | head -6
done
}
figl "$*"