all repos — scriptura @ 67c5dc65972ef72d72080ea7792296971c8f388c

a corner in $HOME for your scripts

functions/__scriptura_complete.fish (view raw)

1
2
3
4
5
6
7
8
9
10
function __scriptura_complete --argument-names from
    for arg in $argv[2..-1]
        if path is --type dir $from/$arg
            set --function from $from/$arg
        end
    end
    for entry in $(path filter --type file,dir --perm exec $from/*)
        printf "%s\t%s\n" $(path basename $entry) $(__scriptura_help $entry)
    end
end