all repos — scriptura @ 67c5dc65972ef72d72080ea7792296971c8f388c

a corner in $HOME for your scripts

extract completion helper functions

Alan Pearce
commit

67c5dc65972ef72d72080ea7792296971c8f388c

parent

c45b4ea656064fa445843ab7885f814350232446

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