all repos — scriptura @ baa93ca20f6525c97091d5ece5861d4526b5591c

a corner in $HOME for your scripts

re-work to use subcommands instead of flags

Alin
commit

baa93ca20f6525c97091d5ece5861d4526b5591c

parent

ad7bee32729173b5eba713b81cd01e2f030d0c36

1 file changed, 4 insertions(+), 2 deletions(-)

changed files
M functions/__scriptura_seen_script.fishfunctions/__scriptura_seen_script.fish
@@ -2,7 +2,9 @@ function __scriptura_seen_script
test (count $argv) -ne 0 or set --function argv (commandline -xpc)[2..] - argparse --stop-nonopt --move-unknown n/new -- $argv + if contains $argv[1] run help edit cat which new + set --erase argv[1] + end if not set --query argv[1] return 1
@@ -18,7 +20,7 @@ set --function target $target/$arg
else if path is --type file --perm exec $target/$arg return 0 else - if set --query _flag_new + if test $argv[1] = new # the first non-directory argument is probably a script name return 0 end