all repos — scriptura @ v0.2.0

a corner in $HOME for your scripts

functions/__scriptura_complete_new.fish (view raw)

1
2
3
4
5
6
7
8
9
10
11
function __scriptura_complete_new --description 'Complete arguments for new subcommand'
    test (count $argv) -ne 0
    or set --function argv (commandline -xpc)[3..] (commandline -ct)

    set --function index (contains --index -- "--" $argv)
    or return

    set --function remaining $argv[(math $index + 1)..]

    __fish_complete_subcommand --commandline $remaining
end