fork/fish-shell

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

Johannes AltmanningerUse complete --keep-order with __fish_complete_suffix to prioritize files with matching suffixes4dae10691

master
1.5 KiB35 linesraw
1# Completions for unzstd
2
3complete -c unzstd -k -x -a "
4(
5    __fish_complete_suffix .zst
6)
7"
8
9complete -c unzstd -s t -l test -d "Test the integrity"
10complete -r -c unzstd -l train -d "Create a dictionary from specified file(s)"
11complete -c unzstd -s l -l list -d "List information about .zst file(s)"
12complete -c unzstd -l long -d "Enable long distance matching with specified windowLog"
13complete -c unzstd -l single-thread -d "Single-thread mode"
14complete -r -c unzstd -s D -d "Use specified file as dictionary"
15complete -r -c unzstd -s o -d "Specify file to save"
16complete -c unzstd -s f -l force -d "Overwrite without prompting"
17complete -c unzstd -s c -l stdout -d "Force write to stdout"
18complete -c unzstd -l sparse -d "Enable sparse mode"
19complete -c unzstd -l no-sparse -d "Disable sparse mode"
20complete -c unzstd -l rm -d "Remove input file(s) after decompression"
21complete -c unzstd -s k -l keep -d "Keep input file(s) (default)"
22complete -c unzstd -s r -d "Recurse directories"
23complete -c unzstd -l filelist -d "Read a list of files"
24complete -c unzstd -l output-dir-flat -d "Specify a directory to output all files"
25
26for format in zstd gzip xz lzma lz4
27    complete -c unzstd -l format="$format" -d "Specify the format to use for decompression"
28end
29
30complete -c unzstd -s h -l help -d "Show help"
31complete -c unzstd -s H -d "Show long help"
32complete -c unzstd -s V -l version -d "Show version"
33complete -c unzstd -s v -l verbose -d "Be verbose"
34complete -c unzstd -s q -l quiet -d "Suppress warnings"
35complete -c unzstd -l no-progress -d "Do not show the progress bar"