]> git.r.bdr.sh - rbdr/dotfiles/blame - zsh/functions/figlet-sample.zsh
Update dependencies
[rbdr/dotfiles] / zsh / functions / figlet-sample.zsh
CommitLineData
7fdbf6d8
RBR
1# Print a string with all the figlet fonts
2figlet-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}