From 7fdbf6d86aa768799f715539065e1ebc31a16be2 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 23 Sep 2020 10:34:22 +0200 Subject: Add figlet sample --- zsh/functions/figlet-sample.zsh | 9 +++++++++ zsh/functions/graphviz.zsh | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 zsh/functions/figlet-sample.zsh (limited to 'zsh/functions') diff --git a/zsh/functions/figlet-sample.zsh b/zsh/functions/figlet-sample.zsh new file mode 100644 index 0000000..70b7591 --- /dev/null +++ b/zsh/functions/figlet-sample.zsh @@ -0,0 +1,9 @@ +# Print a string with all the figlet fonts +figlet-sample () { + if [[ -n "${1+x}" ]] + then + ls -FG `figlet -I 2` | grep --color=auto 'flf' | xargs -I '{}' basename '{}' '.flf' | xargs -I '{}' figlet -f '{}' $1 + else + echo 'Usage: figlet-sample ' + fi +} diff --git a/zsh/functions/graphviz.zsh b/zsh/functions/graphviz.zsh index d7b4e12..f62f9b2 100644 --- a/zsh/functions/graphviz.zsh +++ b/zsh/functions/graphviz.zsh @@ -11,7 +11,7 @@ neat-to-png () { if [[ -n "${1+x}" ]]; then neato -Tpng $1 -o ${1%.*}.png else - echo 'Usage: dot-to-png ' + echo 'Usage: neat-to-png ' fi } -- cgit