mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 14:12:41 +00:00
17 lines
268 B
Bash
Executable File
17 lines
268 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Create a new figlet (ascii art) from the input.
|
|
|
|
figl() {
|
|
font=${FIGL_FONT:-puffy}
|
|
declare -a buf
|
|
while IFS= read -r line; do
|
|
buf+=("$line")
|
|
done
|
|
for line in "${buf[@]}"; do
|
|
figlet -f "$font" -c "${line}" | head -6
|
|
done
|
|
}
|
|
|
|
figl "$*"
|