all repos — scriptura @ c53086030946b26be76cd5efa41c58b04d3577e3

a corner in $HOME for your scripts

functions/__scriptura_list.fish (view raw)

1
2
3
4
5
6
7
8
function __scriptura_list --description 'List scripts and directories' --argument-names from
    for dir in $(path filter --type dir $from/*)
        printf "%-12s -- %-64s\n" "$(path basename $dir) ..." $(__scriptura_help $dir)
    end
    for file in $(path filter --type file --perm exec $from/*)
        printf "%-12s -- %-64s\n" $(path basename $file) $(__scriptura_help $file)
    end
end