extract completion helper functions
1 file changed, 10 insertions(+), 0 deletions(-)
changed files
A functions/__scriptura_complete.fish
@@ -0,0 +1,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