mirror of
https://github.com/rwxrob/dot
synced 2024-11-16 21:25:29 +00:00
22 lines
434 B
Bash
Executable File
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 "$*"
|