]> git.r.bdr.sh - rbdr/dotfiles/blob - zsh/functions/figlet-sample.zsh
70b7591946e79e47e4c6e1b3bd0614f43e4de862
[rbdr/dotfiles] / zsh / functions / figlet-sample.zsh
1 # Print a string with all the figlet fonts
2 figlet-sample () {
3 if [[ -n "${1+x}" ]]
4 then
5 ls -FG `figlet -I 2` | grep --color=auto 'flf' | xargs -I '{}' basename '{}' '.flf' | xargs -I '{}' figlet -f '{}' $1
6 else
7 echo 'Usage: figlet-sample <string>'
8 fi
9 }