all repos — scriptura @ main

a corner in $HOME for your scripts

functions/__scriptura_list.fish (view raw)

1
2
3
4
5
6
7
8
9
10
11
function __scriptura_list --description 'List scripts and directories' --argument-names from
    for dir in $(path filter --type dir $from/*)
        if test "$dir" = "$from/scriptura"
            continue
        end
        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