fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian BoehmRestyle fishscript and python946ecf235

master
1.4 KiB26 linesraw
1# fish completions for ouch https://github.com/ouch-org/ouch
2
3# subcommands list
4set -l commands c compress d decompress l list help
5
6# if no subcommand yet then no file completion
7complete -c ouch -f --condition "not __fish_seen_subcommand_from $commands"
8
9# subcommand completions
10complete -c ouch --condition "not __fish_seen_subcommand_from $commands" \
11    -a compress -d "Compress one or more files into one output file [aliases: c]"
12complete -c ouch --condition "not __fish_seen_subcommand_from $commands" \
13    -a decompress -d "Decompresses one or more files, optionally into another folder [aliases: d]"
14complete -c ouch --condition "not __fish_seen_subcommand_from $commands" \
15    -a list -d "List contents of an archive [aliases: l]"
16complete -c ouch --condition "not __fish_seen_subcommand_from $commands" \
17    -a help -d "Print this message or the help of the given subcommand(s)"
18
19# options completions
20complete -c ouch -s y -l yes -d "Skip [Y/n] questions positively"
21complete -c ouch -s n -l no -d "Skip [Y/n] questions negatively"
22complete -c ouch -s A -l accessible -d "Activate accessibility mode, reducing visual noise [env: ACCESSIBLE=]"
23complete -c ouch -s H -l hidden -d "Ignores hidden files"
24complete -c ouch -s g -l gitignore -d "Ignores files matched by git's ignore files"
25complete -c ouch -s h -l help -d "Print help information (use `--help` for more detail)"
26complete -c ouch -s V -l version -d "Print version information"