all repos — scriptura @ 1be437f25cd089cc0a9b071e3985ca3481219fa7

a corner in $HOME for your scripts

functions/__scriptura_desc.fish (view raw)

1
2
3
function __scriptura_desc --description 'Extract description from script file' --argument-names file
    string match --groups-only --regex '^#\s*([^!].*)$' <$file | string join "\n"
end