## vim:ft=zsh ## finfo - show function info ## Assume that a function begins with an introduction, and print it typeset line whichf $1 &> /dev/null || return 1 while read line; do [[ $line == \#* ]] || break [[ $line == *vim:ft=* ]] && continue echo ${line#(\#|)\# } done < $(whichf $1)