mirror of https://github.com/rwxrob/dot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
434 B
Bash
22 lines
434 B
Bash
#!/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 "$*"
|