all repos — scriptura @ ea5fdda99a8b78f2d11b7efe5f68330fb5ce1b8e

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