From 8c7e64e5f1a8764a0376d54b5db0a0ce31b6856c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 21 Mar 2009 23:16:00 +0100 Subject: Added finfo to print function info --- etc/functions/finfo | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 etc/functions/finfo (limited to 'etc/functions/finfo') diff --git a/etc/functions/finfo b/etc/functions/finfo new file mode 100755 index 0000000..694ab6c --- /dev/null +++ b/etc/functions/finfo @@ -0,0 +1,12 @@ +## vim:ft=zsh +## finfo - show function info +## Assume that a function begins with an introduction, and print it +typeset line + +[[ -n $(whichf $1) ]] || return 1 + +while read line; do + [[ $line == \#* ]] || break + [[ $line == *vim:ft=* ]] && continue + echo $line +done < $(whichf $1) -- cgit v1.2.3