all repos — scriptura @ 319bfc4b41d00530088721134a067d172de8bd3a

a corner in $HOME for your scripts

completions/scriptura.fish (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
set --query SCRIPTURA_ROOT or set --local SCRIPTURA_ROOT "~/sd"

complete --command scriptura --no-files

complete --command scriptura \
    --condition 'not __fish_seen_subcommand_from $(__scriptura_subcommands)' \
    --short-option h --long-option help \
    --description 'Display help information'

complete --command scriptura \
    --condition 'not __fish_seen_subcommand_from $(__scriptura_subcommands)' \
    --short-option n --long-option new \
    --description 'Create new script'

complete --command scriptura \
    --condition 'not __fish_seen_subcommand_from $(__scriptura_subcommands)' \
    --short-option e --long-option edit \
    --description 'Edit existing script'

complete --command scriptura \
    --condition 'not __fish_seen_subcommand_from $(__scriptura_subcommands)' \
    --short-option c --long-option cat \
    --description 'Display script content'

complete --command scriptura \
    --condition 'not __fish_seen_subcommand_from $(__scriptura_subcommands)' \
    --short-option w --long-option which \
    --description 'Display script path'

complete --command scriptura \
    --condition 'not __fish_seen_subcommand_from $(__scriptura_subcommands)' \
    --arguments '(__scriptura_complete_script)'

complete --command scriptura \
    --condition 'not __fish_seen_argument --short n --long new' \
    --condition '__fish_seen_subcommand_from $(__scriptura_subcommands)' \
    --condition 'not __scriptura_seen_script' \
    --arguments '(__scriptura_complete_script)'

complete --command scriptura \
    --condition __scriptura_seen_script \
    --force-files