all repos — nixfiles @ 3ec2f817d94ff7ed2606f260526500c42e4fe430

System and user configuration, managed by nix and home-manager

user/settings/fish/completions/theme.sh.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
set subcommands -- -l -i -i2 -r -a -p -v \
    --list \
    --interactive \
    --interactive2 \
    --random \
    --add \
    --print-theme \
    --version

complete \
    --command theme.sh \
    --no-files

complete \
    --command theme.sh \
    --condition __fish_is_first_arg \
    --long-option light \
    --exclusive \
    --description "Use light theme filter"

complete \
    --command theme.sh \
    --condition __fish_is_first_arg \
    --long-option dark \
    --exclusive \
    --description "Use dark theme filter"

complete \
    --command theme.sh \
    --short-option l \
    --long-option list \
    --condition "not __fish_seen_subcommand_from $subcommands" \
    --description "Print all available themes"

complete \
    --command theme.sh \
    --short-option i \
    --long-option interactive \
    --condition "not __fish_seen_subcommand_from $subcommands" \
    --description "Start the interactive selection mode (requires fzf)"

complete \
    --command theme.sh \
    --short-option i2 \
    --long-option interactive2 \
    --condition "not __fish_seen_subcommand_from $subcommands" \
    --description "Interactive mode #2 (shows theme immediately)"

complete \
    --command theme.sh \
    --short-option r \
    --long-option random \
    --condition "not __fish_seen_subcommand_from $subcommands" \
    --description "Set a random theme and print its name"

complete \
    --command theme.sh \
    --short-option p \
    --long-option print-theme \
    --condition "not __fish_seen_subcommand_from $subcommands" \
    --description "Attempt to read the current theme from the terminal"

complete \
    --command theme.sh \
    --short-option v \
    --long-option version \
    --condition "not __fish_seen_subcommand_from $subcommands" \
    --description "Print the version and exit"

complete \
    --command theme.sh \
    --short-option a \
    --long-option add \
    --condition "not __fish_seen_subcommand_from $subcommands" \
    --description "Annexes the given kitty config file" \
    --require-parameter

complete \
    --command theme.sh \
    --condition "__fish_seen_subcommand_from -a --add" \
    --force-files

complete \
    --command theme.sh \
    --condition "not __fish_seen_subcommand_from $subcommands --light --dark" \
    --arguments '(theme.sh --list)'

complete \
    --command theme.sh \
    --condition "not __fish_seen_subcommand_from $subcommands" \
    --condition "__fish_seen_subcommand_from --light" \
    --arguments '(theme.sh --light --list)'

complete \
    --command theme.sh \
    --condition "not __fish_seen_subcommand_from $subcommands" \
    --condition "__fish_seen_subcommand_from --dark" \
    --arguments '(theme.sh --dark --list)'