all repos — scriptura @ a6778d7afa62b41238d549ce40328047fb7c44a2

a corner in $HOME for your scripts

add command completion to --new (after --)

Alan Pearce
commit

a6778d7afa62b41238d549ce40328047fb7c44a2

parent

319bfc4b41d00530088721134a067d172de8bd3a

1 file changed, 6 insertions(+), 0 deletions(-)

changed files
M functions/__scriptura_complete_script.fishfunctions/__scriptura_complete_script.fish
@@ -4,6 +4,8 @@
test (count $argv) -ne 0 or set --function argv (commandline -xpc)[2..] + argparse --move-unknown n/new -- $argv + for arg in $argv if path is --type dir $from/$arg set --function from $from/$arg
@@ -13,6 +15,10 @@ end
end set --function types file,dir + if set --query _flag_new + set --function types dir + end + for entry in $(path filter --type $types --perm exec $from/*) printf "%s\t%s\n" $(path basename $entry) $(__scriptura_help $entry) end