mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 13:57:17 +08:00
Use complete --keep-order with __fish_complete_suffix to prioritize files with matching suffixes
Part of #7040
This commit is contained in:
parent
bae75c96d9
commit
4dae106911
|
@ -157,7 +157,7 @@ complete -n '__fish_seen_subcommand_from forward' -c adb -l remove -d 'Remove a
|
|||
complete -n '__fish_seen_subcommand_from forward' -c adb -l remove-all -d 'Remove all forward socket connections'
|
||||
|
||||
# sideload
|
||||
complete -n '__fish_seen_subcommand_from sideload' -c adb -xa '(__fish_complete_suffix .zip)'
|
||||
complete -n '__fish_seen_subcommand_from sideload' -c adb -k -xa '(__fish_complete_suffix .zip)'
|
||||
|
||||
# reconnect
|
||||
complete -n '__fish_seen_subcommand_from reconnect' -c adb -x -a device -d 'Kick current connection from device side and make it reconnect.'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
complete -x -c asciidoctor -a "
|
||||
complete -x -c asciidoctor -k -a "
|
||||
(
|
||||
__fish_complete_suffix .asciidoc
|
||||
__fish_complete_suffix .adoc
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
complete -f -c at -s V -d "Display version and exit"
|
||||
complete -f -c at -s q -d "Use specified queue"
|
||||
complete -f -c at -s m -d "Send mail to user"
|
||||
complete -c at -s f -x -a "(__fish_complete_suffix (commandline -ct) '' 'At job')" -d "Read job from file"
|
||||
complete -c at -s f -k -x -a "(__fish_complete_suffix (commandline -ct) '' 'At job')" -d "Read job from file"
|
||||
complete -f -c at -s l -d "Alias for atq"
|
||||
complete -f -c at -s d -d "Alias for atrm"
|
||||
complete -f -c at -s v -d "Show the time"
|
||||
|
|
|
@ -163,6 +163,6 @@ complete -c aura -n $sync -s y -l refresh -d 'Download fresh copy of the package
|
|||
complete -c aura -n "$sync; and $argument" -xa "$listall $listgroups"
|
||||
|
||||
# Upgrade options
|
||||
complete -c aura -n "$upgrade; and $argument" -xa '(__fish_complete_suffix pkg.tar.xz)' -d 'Package file'
|
||||
complete -c aura -n "$upgrade; and $argument" -xa '(__fish_complete_suffix pkg.tar.gz)' -d 'Package file'
|
||||
complete -c aura -n "$upgrade; and $argument" -xa '(__fish_complete_suffix pkg.tar.zst)' -d 'Package file'
|
||||
complete -c aura -n "$upgrade; and $argument" -k -xa '(__fish_complete_suffix pkg.tar.xz)' -d 'Package file'
|
||||
complete -c aura -n "$upgrade; and $argument" -k -xa '(__fish_complete_suffix pkg.tar.gz)' -d 'Package file'
|
||||
complete -c aura -n "$upgrade; and $argument" -k -xa '(__fish_complete_suffix pkg.tar.zst)' -d 'Package file'
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
complete -c bunzip2 -x -a "(
|
||||
complete -c bunzip2 -k -x -a "(
|
||||
__fish_complete_suffix .tbz
|
||||
__fish_complete_suffix .tbz2
|
||||
)
|
||||
"
|
||||
|
||||
complete -c bunzip2 -x -a "(
|
||||
complete -c bunzip2 -k -x -a "(
|
||||
__fish_complete_suffix .bz
|
||||
__fish_complete_suffix .bz2
|
||||
)
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
complete -c bzcat -x -a "(
|
||||
complete -c bzcat -k -x -a "(
|
||||
__fish_complete_suffix .tbz
|
||||
__fish_complete_suffix .tbz2
|
||||
)
|
||||
"
|
||||
|
||||
complete -c bzcat -x -a "(
|
||||
complete -c bzcat -k -x -a "(
|
||||
__fish_complete_suffix .bz
|
||||
__fish_complete_suffix .bz2
|
||||
)
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
complete -c bzip2 -s c -l stdout -d "Compress to stdout"
|
||||
complete -c bzip2 -s d -l decompress -x -a "(
|
||||
complete -c bzip2 -s d -l decompress -k -x -a "(
|
||||
__fish_complete_suffix .tbz
|
||||
__fish_complete_suffix .tbz2
|
||||
)
|
||||
"
|
||||
|
||||
complete -c bzip2 -s d -l decompress -x -a "(
|
||||
complete -c bzip2 -s d -l decompress -k -x -a "(
|
||||
__fish_complete_suffix .bz
|
||||
__fish_complete_suffix .bz2
|
||||
)
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
complete -c bzip2recover -x -a "(
|
||||
complete -c bzip2recover -k -x -a "(
|
||||
__fish_complete_suffix .tbz
|
||||
__fish_complete_suffix .tbz2
|
||||
)
|
||||
"
|
||||
|
||||
complete -c bzip2recover -x -a "(
|
||||
complete -c bzip2recover -k -x -a "(
|
||||
__fish_complete_suffix .bz
|
||||
__fish_complete_suffix .bz2
|
||||
)
|
||||
|
|
|
@ -6,7 +6,7 @@ set -l __fish_castnow_keys "space\tToggle\ between\ play\ and\ pause m\tToggle\
|
|||
complete -c castnow -l tomp4 -d "Convert file to mp4 during playback"
|
||||
complete -c castnow -l device -d "Specify name of Chromecast device to be used" -x
|
||||
complete -c castnow -l address -d "Specify IP or hostname of Chromecast device" -x
|
||||
complete -c castnow -l subtitles -d "Path or URL to SRT or VTT file" -x -a "(
|
||||
complete -c castnow -l subtitles -d "Path or URL to SRT or VTT file" -k -x -a "(
|
||||
__fish_complete_suffix .srt
|
||||
__fish_complete_suffix .vtt
|
||||
)"
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
complete -p '*clang++*' -n __fish_should_complete_switches -xa '(__fish_complete_clang)'
|
||||
complete -p '*clang++*' -n 'not __fish_should_complete_switches' \
|
||||
-xa "(__fish_complete_suffix .o; __fish_complete_suffix .out; __fish_complete_suffix .c; __fish_complete_suffix .cpp; __fish_complete_suffix .so; __fish_complete_suffix .dylib)"
|
||||
-k -xa "(__fish_complete_suffix .o; __fish_complete_suffix .out; __fish_complete_suffix .c; __fish_complete_suffix .cpp; __fish_complete_suffix .so; __fish_complete_suffix .dylib)"
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
# This pattern unfortunately matches clang-format, etc. as well.
|
||||
complete -p '*clang*' -n __fish_should_complete_switches -xa '(__fish_complete_clang)'
|
||||
complete -c clang -n 'not __fish_should_complete_switches' \
|
||||
-xa "(__fish_complete_suffix .o; __fish_complete_suffix .out; __fish_complete_suffix .c; __fish_complete_suffix .cpp; __fish_complete_suffix .so; __fish_complete_suffix .dylib)"
|
||||
-k -xa "(__fish_complete_suffix .o; __fish_complete_suffix .out; __fish_complete_suffix .c; __fish_complete_suffix .cpp; __fish_complete_suffix .so; __fish_complete_suffix .dylib)"
|
||||
|
||||
# again but without the -x this time for the pattern-matched completion
|
||||
complete -p '*clang*' -n 'not __fish_should_complete_switches' \
|
||||
-a "(__fish_complete_suffix .o; __fish_complete_suffix .out; __fish_complete_suffix .c; __fish_complete_suffix .cpp; __fish_complete_suffix .so; __fish_complete_suffix .dylib)"
|
||||
-k -a "(__fish_complete_suffix .o; __fish_complete_suffix .out; __fish_complete_suffix .c; __fish_complete_suffix .cpp; __fish_complete_suffix .so; __fish_complete_suffix .dylib)"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
complete -x -c cmark -a "
|
||||
complete -k -x -c cmark -a "
|
||||
(
|
||||
__fish_complete_suffix .md
|
||||
__fish_complete_suffix .markdown
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
complete -c curl -n 'string match -qr "^@" -- (commandline -ct)' -xa "(printf '%s\n' -- @(__fish_complete_suffix (commandline -ct | string replace -r '^@' '') ''))"
|
||||
complete -c curl -n 'string match -qr "^@" -- (commandline -ct)' -k -xa "(printf '%s\n' -- @(__fish_complete_suffix (commandline -ct | string replace -r '^@' '') ''))"
|
||||
|
||||
# These based on the autogenerated completions.
|
||||
complete -c curl -l abstract-unix-socket -d '(HTTP) Connect through an abstract Unix domain socket, instead of using the n…'
|
||||
|
|
|
@ -120,7 +120,7 @@ complete -c cwebp -x -o map -d 'Print map of extra info'
|
|||
complete -c cwebp -o print_psnr -d 'Print averaged PSNR distortion'
|
||||
complete -c cwebp -o print_ssim -d 'Print averaged SSIM distortion'
|
||||
complete -c cwebp -o print_lsim -d 'Print local-similarity distortion'
|
||||
complete -c cwebp -r -o d -a '(__fish_complete_suffix .pgm)' -d 'Dump compressed output to given PGM file'
|
||||
complete -c cwebp -r -o d -k -a '(__fish_complete_suffix .pgm)' -d 'Dump compressed output to given PGM file'
|
||||
complete -c cwebp -x -o alpha_method -a "$alpha_method_opts" -d 'Transparency-compression method'
|
||||
complete -c cwebp -x -o alpha_filter -a "$alpha_filter_opts" -k -d 'Predictive filtering for alpha plane'
|
||||
complete -c cwebp -x -o exact -d 'Preserve RGB values in transparent area'
|
||||
|
@ -143,4 +143,4 @@ complete -c cwebp -o jpeg_like -d 'Roughly match expected JPEG size'
|
|||
complete -c cwebp -o af -d 'Auto-adjust filter strength'
|
||||
complete -c cwebp -x -o pre -d 'Pre-processing filter (integer)'
|
||||
|
||||
complete -c cwebp -r -o o -a '(__fish_complete_suffix .webp)' -d 'Output to file'
|
||||
complete -c cwebp -r -o o -k -a '(__fish_complete_suffix .webp)' -d 'Output to file'
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
|
||||
complete -c djview -x -a "(__fish_complete_suffix .djvu)"
|
||||
complete -c djview -x -k -a "(__fish_complete_suffix .djvu)"
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
|
||||
complete -c djview4 -x -a "(__fish_complete_suffix .djvu)"
|
||||
complete -c djview4 -x -k -a "(__fish_complete_suffix .djvu)"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
complete -c dpkg -s i -l install -d 'Install .deb package' -xa '(__fish_complete_suffix .deb)'
|
||||
complete -c dpkg -l unpack -d 'Unpack .deb package' -xa '(__fish_complete_suffix .deb)'
|
||||
complete -c dpkg -s i -l install -d 'Install .deb package' -k -xa '(__fish_complete_suffix .deb)'
|
||||
complete -c dpkg -l unpack -d 'Unpack .deb package' -k -xa '(__fish_complete_suffix .deb)'
|
||||
complete -c dpkg -l configure -d 'Configure package' -xa '(dpkg-query -W -f \'${Package}\n\')'
|
||||
complete -c dpkg -s r -l remove -d 'Remove package' -xa '(dpkg-query -W -f \'${Package}\n\')'
|
||||
complete -c dpkg -s P -l purge -d 'Purge package' -xa '(dpkg-query -W -f \'${Package}\n\')'
|
||||
|
@ -9,8 +9,8 @@ complete -c dpkg -l force-all -d 'Continue on all problems'
|
|||
|
||||
# dpkg-deb options
|
||||
complete -c dpkg -s b -l build -d 'Build package from directory' -xa '(__fish_complete_directories (commandline -ct))'
|
||||
complete -c dpkg -s c -l contents -d 'List contents of .deb' -xa '(__fish_complete_suffix .deb)'
|
||||
complete -c dpkg -s I -l info -d 'Show .deb information' -xa '(__fish_complete_suffix .deb)'
|
||||
complete -c dpkg -s c -l contents -d 'List contents of .deb' -k -xa '(__fish_complete_suffix .deb)'
|
||||
complete -c dpkg -s I -l info -d 'Show .deb information' -k -xa '(__fish_complete_suffix .deb)'
|
||||
|
||||
# dpkg-query options
|
||||
complete -c dpkg -s l -l list -d 'List packages matching pattern' -xa '(dpkg-query -W -f \'${Package}\n\')'
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
complete -c dvipdf -x -a "(
|
||||
complete -c dvipdf -k -x -a "(
|
||||
__fish_complete_suffix .dvi
|
||||
)"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
complete -c dvipdfm -x -a "
|
||||
complete -c dvipdfm -k -x -a "
|
||||
(
|
||||
__fish_complete_suffix .dvi
|
||||
)"
|
||||
|
|
|
@ -17,7 +17,7 @@ complete -c figlet -s p -d "Put FIGlet into `paragraph mode`"
|
|||
complete -c figlet -s n -d "Put FIGlet back to normal"
|
||||
complete -c figlet -s D -d "Switch to German (ISO 646-DE) character set"
|
||||
complete -c figlet -s E -d "Turns off German character set processing"
|
||||
complete -c figlet -s C -d "Add given control file" -a "(__fish_complete_suffix .flc)" -x
|
||||
complete -c figlet -s C -d "Add given control file" -k -a "(__fish_complete_suffix .flc)" -x
|
||||
complete -c figlet -s N -d "Clear control file list"
|
||||
complete -c figlet -s s -d "Cause `smushing`"
|
||||
complete -c figlet -s S -d "Cause `smushing`"
|
||||
|
|
|
@ -20,4 +20,4 @@ complete -c fish -s f -l features -d "Run with comma-separated feature flags ena
|
|||
complete -c fish -l print-rusage-self -d "Print stats from getrusage at exit" -f
|
||||
complete -c fish -l print-debug-categories -d "Print the debug categories fish knows" -f
|
||||
|
||||
complete -c fish -x -a "(__fish_complete_suffix .fish)"
|
||||
complete -c fish -k -x -a "(__fish_complete_suffix .fish)"
|
||||
|
|
|
@ -1708,6 +1708,7 @@ complete -f -c git -n __fish_git_needs_command -a config -d 'Set and read git co
|
|||
### format-patch
|
||||
complete -f -c git -n __fish_git_needs_command -a format-patch -d 'Generate patch series to send upstream'
|
||||
complete -f -c git -n '__fish_git_using_command format-patch' -a '(__fish_git_branches)'
|
||||
complete -c git -n '__fish_git_using_command format-patch' -s o -l output-directory -xa '(__fish_complete_directories)'
|
||||
complete -f -c git -n '__fish_git_using_command format-patch' -s p -l no-stat -d "Generate plain patches without diffstat"
|
||||
complete -f -c git -n '__fish_git_using_command format-patch' -s s -l no-patch -d "Suppress diff output"
|
||||
complete -f -c git -n '__fish_git_using_command format-patch' -l minimal -d "Spend more time to create smaller diffs"
|
||||
|
|
|
@ -30,7 +30,7 @@ complete -c go -n "__fish_seen_subcommand_from $__go_cmds_w_buildflags" -o mod -
|
|||
|
||||
|
||||
# Completions for go cmds that takes file arguments
|
||||
complete -c go -n "__fish_seen_subcommand_from build compile fix fmt install test vet" -x -a "(
|
||||
complete -c go -n "__fish_seen_subcommand_from build compile fix fmt install test vet" -k -x -a "(
|
||||
__fish_complete_suffix .go
|
||||
)" --description File
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
complete -c gunzip -s c -l stdout -d "Compress to stdout"
|
||||
complete -c gunzip -x -a "(
|
||||
complete -c gunzip -k -x -a "(
|
||||
__fish_complete_suffix .gz
|
||||
__fish_complete_suffix .tgz
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
complete -c gv -xa "(__fish_complete_suffix .ps)"
|
||||
complete -c gv -xa "(__fish_complete_suffix .ps.gz)"
|
||||
complete -c gv -xa "(__fish_complete_suffix .eps)"
|
||||
complete -c gv -xa "(__fish_complete_suffix .pdf)"
|
||||
complete -c gv -k -xa "(__fish_complete_suffix .ps)"
|
||||
complete -c gv -k -xa "(__fish_complete_suffix .ps.gz)"
|
||||
complete -c gv -k -xa "(__fish_complete_suffix .eps)"
|
||||
complete -c gv -k -xa "(__fish_complete_suffix .pdf)"
|
||||
complete -c gv -l monochrome -d 'Display document using only black and white'
|
||||
complete -c gv -l grayscale -d 'Display document without colors'
|
||||
complete -c gv -l color -d 'Display document as usual'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
complete -c gzip -s c -l stdout -d "Compress to stdout"
|
||||
complete -c gzip -s d -l decompress -x -a "
|
||||
complete -c gzip -s d -l decompress -k -x -a "
|
||||
(
|
||||
__fish_complete_suffix .gz
|
||||
__fish_complete_suffix .tgz
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
complete -c latexmk -x -a "(__fish_complete_suffix (commandline -ct) .tex '(La)TeX file')"
|
||||
complete -c latexmk -k -x -a "(__fish_complete_suffix (commandline -ct) .tex '(La)TeX file')"
|
||||
complete -c latexmk -o bibtex -d 'use bibtex when needed (default)'
|
||||
complete -c latexmk -o bibtex- -d 'never use bibtex'
|
||||
complete -c latexmk -o bibtex-cond -d 'use bibtex when needed, but only if the bib files exist'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
__fish_complete_lpr lp
|
||||
complete -c lpr -xa "(__fish_complete_suffix .pdf)"
|
||||
complete -c lpr -xa "(__fish_complete_suffix .ps)"
|
||||
complete -c lpr -k -xa "(__fish_complete_suffix .pdf)"
|
||||
complete -c lpr -k -xa "(__fish_complete_suffix .ps)"
|
||||
complete -c lp -s d -d 'Prints files to the named printer' -xa '(__fish_print_lpr_printers)'
|
||||
complete -c lp -s i -d 'Specifies an existing job to modify' -x
|
||||
complete -c lp -s n -d 'Sets the number of copies to print from 1 to 100' -x
|
||||
|
|
|
@ -8,7 +8,7 @@ complete -c lpadmin -s v -d 'Sets the device-uri attribute of the printer queue'
|
|||
complete -c lpadmin -s D -d 'Provides a textual description of the destination' -x
|
||||
complete -c lpadmin -s E -d 'Enables the destination and accepts jobs'
|
||||
complete -c lpadmin -s L -d 'Provides a textual location of the destination' -x
|
||||
complete -c lpadmin -s P -d 'Specifies a PostScript Printer Description file to use with the printer' -xa "(__fish_complete_suffix .ppd; __fish_complete_suffix .ppd.gz)"
|
||||
complete -c lpadmin -s P -d 'Specifies a PostScript Printer Description file to use with the printer' -k -xa "(__fish_complete_suffix .ppd; __fish_complete_suffix .ppd.gz)"
|
||||
complete -c lpadmin -s o -xa cupsIPPSupplies=true -d 'Specifies whether IPP supply level values should be reported'
|
||||
complete -c lpadmin -s o -xa cupsIPPSupplies=false -d 'Specifies whether IPP supply level values should be reported'
|
||||
complete -c lpadmin -s o -xa cupsSNMPSupplies=true -d 'Specifies whether SNMP supply level (RFC 3805) values should be reported'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
__fish_complete_lpr lpr
|
||||
complete -c lpr -xa "(__fish_complete_suffix .pdf)"
|
||||
complete -c lpr -xa "(__fish_complete_suffix .ps)"
|
||||
complete -c lpr -k -xa "(__fish_complete_suffix .pdf)"
|
||||
complete -c lpr -k -xa "(__fish_complete_suffix .ps)"
|
||||
complete -c lpr -s H -x -d 'Specifies an alternate server' -xa '(__fish_print_hostnames)'
|
||||
complete -c lpr -s C -s J -s T -x -d 'Sets the job name'
|
||||
#complete -c lpr -o '\\#' -d 'Sets the number of copies to print from 1 to 100' -xa
|
||||
|
|
|
@ -5,5 +5,5 @@ complete -c lua -s l -d 'Require library' -xa "(find /usr/lib{,32,64}/lua/ -name
|
|||
complete -c lua -s i -d 'Enter interactive mode after executing script'
|
||||
complete -c lua -s v -d 'Show version'
|
||||
complete -c lua -s h -l help -d 'Print help and exit'
|
||||
complete -c lua -a "(__fish_complete_suffix .lua)"
|
||||
complete -c lua -k -a "(__fish_complete_suffix .lua)"
|
||||
complete -c lua -a - -d 'Execute stdin and stop handling options'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Completions for lz4
|
||||
|
||||
complete -c lz4 -s z -l compress -d "Compress (default)"
|
||||
complete -c lz4 -s d -l decompress -l uncompress -d Decompress -x -a "
|
||||
complete -c lz4 -s d -l decompress -l uncompress -d Decompress -k -x -a "
|
||||
(
|
||||
__fish_complete_suffix .lz4
|
||||
)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Completions for lz4cat
|
||||
|
||||
complete -c lz4cat -x -a "
|
||||
complete -c lz4cat -k -x -a "
|
||||
(
|
||||
__fish_complete_suffix .lz4
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
complete -c mupdf -x -a "(__fish_complete_suffix .pdf)"
|
||||
complete -c mupdf -k -x -a "(__fish_complete_suffix .pdf)"
|
||||
|
||||
complete -c mupdf -s p -d Description
|
||||
complete -c mupdf -s r -d Resolution
|
||||
|
|
|
@ -17,7 +17,7 @@ end
|
|||
complete -c ninja -f -a '(__fish_print_ninja_targets)' -d target
|
||||
complete -x -c ninja -s t -x -a "(__fish_print_ninja_tools)" -d subtool
|
||||
complete -x -c ninja -s C -x -a "(__fish_complete_directories (commandline -ct))" -d "change to specified directory"
|
||||
complete -c ninja -s f -x -a "(__fish_complete_suffix .ninja)" -d "specify build file [default=build.ninja]"
|
||||
complete -c ninja -s f -k -x -a "(__fish_complete_suffix .ninja)" -d "specify build file [default=build.ninja]"
|
||||
complete -f -c ninja -s n -d "dry run"
|
||||
complete -f -c ninja -s v -d "show all command lines while building"
|
||||
complete -f -c ninja -s j -d "number of jobs to run in parallel [default derived from CPUs]"
|
||||
|
|
|
@ -19,7 +19,7 @@ end
|
|||
complete -c openocd -f # at no point does openocd take arbitrary arguments
|
||||
complete -c openocd -s h -l help -d "display help"
|
||||
complete -c openocd -s v -l version -d "display version info"
|
||||
complete -c openocd -s f -l file -xa '(__fish_complete_openocd_path .cfg)'
|
||||
complete -c openocd -s f -l file -k -xa '(__fish_complete_openocd_path .cfg)'
|
||||
complete -c openocd -s d -l debug -d "run under debug level 3"
|
||||
complete -c openocd -s d -l debug -d "run under debug level n" -xa '(seq 1 9)'
|
||||
complete -c openocd -s l -l log_output -d "redirect output to file" -r
|
||||
|
|
|
@ -37,6 +37,6 @@ complete -x -c optipng -n __fish_should_complete_switches -a '-dir\t"write outpu
|
|||
complete -x -c optipng -n __fish_should_complete_switches -a '-log\t"log messages to <file>"'
|
||||
|
||||
complete -x -c optipng -n 'not __fish_prev_arg_in -out -dir -log' \
|
||||
-a '(__fish_complete_suffix .png; __fish_complete_suffix .pnm; __fish_complete_suffix .tiff; __fish_complete_suffix .bmp)'
|
||||
-k -a '(__fish_complete_suffix .png; __fish_complete_suffix .pnm; __fish_complete_suffix .tiff; __fish_complete_suffix .bmp)'
|
||||
|
||||
complete -x -c optipng -n '__fish_prev_arg_in -dir' -a '(__fish_complete_directories)'
|
||||
|
|
|
@ -159,4 +159,4 @@ complete -c $progname -n "$files" -l machinereadable -d 'Show in machine readabl
|
|||
# Upgrade options
|
||||
# Theoretically, pacman reads packages in all formats that libarchive supports
|
||||
# In practice, it's going to be tar.xz or tar.gz or tar.zst
|
||||
complete -c $progname -n "$upgrade" -xa '(__fish_complete_suffix pkg.tar.zst; __fish_complete_suffix pkg.tar.xz; __fish_complete_suffix pkg.tar.gz)' -d 'Package file'
|
||||
complete -c $progname -n "$upgrade" -k -xa '(__fish_complete_suffix pkg.tar.zst; __fish_complete_suffix pkg.tar.xz; __fish_complete_suffix pkg.tar.gz)' -d 'Package file'
|
||||
|
|
|
@ -141,4 +141,4 @@ complete -c $progname -n "$sync" -xa "$listall $listgroups"
|
|||
# Upgrade options
|
||||
# Theoretically, pacman reads packages in all formats that libarchive supports
|
||||
# In practice, it's going to be tar.xz, tar.gz, tar.zst, or just pkg.tar (uncompressed pkg)
|
||||
complete -c $progname -n "$upgrade" -xa '(__fish_complete_suffix pkg.tar.zst; __fish_complete_suffix pkg.tar.xz; __fish_complete_suffix pkg.tar.gz; __fish_complete_suffix pkg.tar;)' -d 'Package file'
|
||||
complete -c $progname -n "$upgrade" -k -xa '(__fish_complete_suffix pkg.tar.zst; __fish_complete_suffix pkg.tar.xz; __fish_complete_suffix pkg.tar.gz; __fish_complete_suffix pkg.tar;)' -d 'Package file'
|
||||
|
|
|
@ -80,22 +80,22 @@ complete -c pandoc -r -l citation-abbreviations
|
|||
|
||||
# options that take files filtered by extension
|
||||
|
||||
complete -c pandoc -r -f -l print-highlight-style -a "(__fish_complete_suffix 'theme' )"
|
||||
complete -c pandoc -r -f -l highlight_style -a "(__fish_complete_suffix 'theme' )"
|
||||
complete -c pandoc -r -f -l csl -a "(__fish_complete_suffix 'csl' )"
|
||||
complete -c pandoc -r -f -l reference-file -a "(__fish_complete_suffix 'odt') (__fish_complete_suffix 'docx')"
|
||||
complete -c pandoc -r -f -l bibliography -a "(__fish_complete_suffix 'bib')"
|
||||
complete -c pandoc -r -f -l bibliography -a "(__fish_complete_suffix 'bibtex')"
|
||||
complete -c pandoc -r -f -l bibliography -a "(__fish_complete_suffix 'copac')"
|
||||
complete -c pandoc -r -f -l bibliography -a "(__fish_complete_suffix 'json')"
|
||||
complete -c pandoc -r -f -l bibliography -a "(__fish_complete_suffix 'yaml')"
|
||||
complete -c pandoc -r -f -l bibliography -a "(__fish_complete_suffix 'enl')"
|
||||
complete -c pandoc -r -f -l bibliography -a "(__fish_complete_suffix 'xml')"
|
||||
complete -c pandoc -r -f -l bibliography -a "(__fish_complete_suffix 'wos')"
|
||||
complete -c pandoc -r -f -l bibliography -a "(__fish_complete_suffix 'medline')"
|
||||
complete -c pandoc -r -f -l bibliography -a "(__fish_complete_suffix 'mods')"
|
||||
complete -c pandoc -r -f -l bibliography -a "(__fish_complete_suffix 'ria')"
|
||||
complete -c pandoc -r -f -l lua-filter -a "(__fish_complete_suffix 'lua')"
|
||||
complete -c pandoc -r -f -l print-highlight-style -k -a "(__fish_complete_suffix 'theme' )"
|
||||
complete -c pandoc -r -f -l highlight_style -k -a "(__fish_complete_suffix 'theme' )"
|
||||
complete -c pandoc -r -f -l csl -k -a "(__fish_complete_suffix 'csl' )"
|
||||
complete -c pandoc -r -f -l reference-file -k -a "(__fish_complete_suffix 'odt') (__fish_complete_suffix 'docx')"
|
||||
complete -c pandoc -r -f -l bibliography -k -a "(__fish_complete_suffix 'bib')"
|
||||
complete -c pandoc -r -f -l bibliography -k -a "(__fish_complete_suffix 'bibtex')"
|
||||
complete -c pandoc -r -f -l bibliography -k -a "(__fish_complete_suffix 'copac')"
|
||||
complete -c pandoc -r -f -l bibliography -k -a "(__fish_complete_suffix 'json')"
|
||||
complete -c pandoc -r -f -l bibliography -k -a "(__fish_complete_suffix 'yaml')"
|
||||
complete -c pandoc -r -f -l bibliography -k -a "(__fish_complete_suffix 'enl')"
|
||||
complete -c pandoc -r -f -l bibliography -k -a "(__fish_complete_suffix 'xml')"
|
||||
complete -c pandoc -r -f -l bibliography -k -a "(__fish_complete_suffix 'wos')"
|
||||
complete -c pandoc -r -f -l bibliography -k -a "(__fish_complete_suffix 'medline')"
|
||||
complete -c pandoc -r -f -l bibliography -k -a "(__fish_complete_suffix 'mods')"
|
||||
complete -c pandoc -r -f -l bibliography -k -a "(__fish_complete_suffix 'ria')"
|
||||
complete -c pandoc -r -f -l lua-filter -k -a "(__fish_complete_suffix 'lua')"
|
||||
|
||||
# options that take files in DATADIR
|
||||
complete -c pandoc -r -s F -l filter -a "(find $datadir/filters/** | string replace -- '$datadir/filters/' '')"
|
||||
|
|
|
@ -17,7 +17,7 @@ complete -c patch -s f -l force -d "Like -t, but ignore bad-Prereq patches, assu
|
|||
complete -c patch -s F -l fuzz -x -d "Number of LINES for inexact 'fuzzy' matching" -a "(seq 0 9){\tfuzz lines}"
|
||||
complete -c patch -s g -l get -x -d "Get files from RCS etc. if positive; ask if negative" -a '(seq -1 1){\t\n}'
|
||||
complete -c patch -l help -f -d "Display help"
|
||||
complete -c patch -s i -l input -x -d "Read patch from FILE instead of stdin" -a "( __fish_complete_suffix .patch; __fish_complete_suffix .diff)"
|
||||
complete -c patch -s i -l input -x -d "Read patch from FILE instead of stdin" -k -a "( __fish_complete_suffix .patch; __fish_complete_suffix .diff)"
|
||||
complete -c patch -s l -l ignore-whitespace -d "Ignore whitespace changes between patch & input"
|
||||
complete -c patch -s n -l normal -d "Interpret patch as normal diff"
|
||||
complete -c patch -s N -l forward -d "Ignore patches that seem reversed or already applied"
|
||||
|
|
|
@ -95,7 +95,7 @@ complete -f -c phpunit -l do-not-cache-result -d 'Do not write test results to c
|
|||
# Configuration Options:
|
||||
complete -x -c phpunit -l prepend -d 'A PHP script that is included as early as possible'
|
||||
complete -x -c phpunit -l bootstrap -d 'A PHP script that is included before the tests run'
|
||||
complete -x -c phpunit -s c -l configuration -a '(__fish_complete_suffix .xml; __fish_complete_suffix .xml.dist)' -d 'Read configuration from XML file'
|
||||
complete -x -c phpunit -s c -l configuration -k -a '(__fish_complete_suffix .xml; __fish_complete_suffix .xml.dist)' -d 'Read configuration from XML file'
|
||||
complete -f -c phpunit -l no-configuration -d 'Ignore default configuration file (phpunit.xml)'
|
||||
complete -f -c phpunit -l no-logging -d 'Ignore logging configuration'
|
||||
complete -f -c phpunit -l no-extensions -d 'Do not load PHPUnit extensions'
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
complete -c ps2pdf -x -a "(
|
||||
complete -c ps2pdf -k -x -a "(
|
||||
__fish_complete_suffix .ps
|
||||
)"
|
||||
|
|
|
@ -16,7 +16,7 @@ complete -c python -o vv -d "Even more verbose mode"
|
|||
complete -c python -s V -l version -d "Display version and exit"
|
||||
complete -c python -s W -x -d "Warning control" -a "ignore default all module once error"
|
||||
complete -c python -s x -d 'Skip first line of source, allowing use of non-Unix forms of #!cmd'
|
||||
complete -c python -f -n __fish_is_first_token -a "(__fish_complete_suffix .py)"
|
||||
complete -c python -f -n __fish_is_first_token -k -a "(__fish_complete_suffix .py)"
|
||||
complete -c python -f -n __fish_is_first_token -a - -d 'Read program from stdin'
|
||||
|
||||
# Version-specific completions
|
||||
|
|
|
@ -13,7 +13,7 @@ complete -c python2 -s v -d "Verbose mode"
|
|||
complete -c python2 -s V -d "Display version and exit"
|
||||
complete -c python2 -s W -x -d "Warning control" -a "ignore default all module once error"
|
||||
complete -c python2 -s x -d 'Skip first line of source, allowing use of non-Unix forms of #!cmd'
|
||||
complete -c python2 -f -n __fish_is_first_token -a "(__fish_complete_suffix .py)"
|
||||
complete -c python2 -f -n __fish_is_first_token -k -a "(__fish_complete_suffix .py)"
|
||||
complete -c python2 -f -n __fish_is_first_token -a - -d 'Read program from stdin'
|
||||
complete -c python2 -s 3 -d 'Warn about Python 3.x incompatibilities that 2to3 cannot trivially fix'
|
||||
complete -c python2 -s t -d "Warn on mixed tabs and spaces"
|
||||
|
|
|
@ -13,7 +13,7 @@ complete -c python3 -s v -d "Verbose mode"
|
|||
complete -c python3 -s V -l version -d "Display version and exit"
|
||||
complete -c python3 -s W -x -d "Warning control" -a "ignore default all module once error"
|
||||
complete -c python3 -s x -d 'Skip first line of source, allowing use of non-Unix forms of #!cmd'
|
||||
complete -c python3 -n __fish_is_first_token -fa "(__fish_complete_suffix .py)"
|
||||
complete -c python3 -n __fish_is_first_token -k -fa "(__fish_complete_suffix .py)"
|
||||
complete -c python3 -f -n __fish_is_first_token -a - -d 'Read program from stdin'
|
||||
complete -c python3 -s q -d 'Don\'t print version and copyright messages on interactive startup'
|
||||
complete -c python3 -s X -x -d 'Set implementation-specific option' -a 'faulthandler showrefcount tracemalloc showalloccount importtime dev utf8 pycache_prefex=PATH:'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Completions for pzstd
|
||||
|
||||
complete -c pzstd -s d -l decompress -d Decompress -x -a "
|
||||
complete -c pzstd -s d -l decompress -d Decompress -k -x -a "
|
||||
(
|
||||
__fish_complete_suffix .zst
|
||||
)
|
||||
|
|
|
@ -7,4 +7,4 @@ complete -c root -s x -d 'Exit on exception'
|
|||
complete -c root -s h -s \? -l help -d 'Print help'
|
||||
complete -c root -o config -d 'Print ./configure options'
|
||||
complete -c root -o memstat -d 'Run with memory usage monitoring'
|
||||
complete -c root -a "(__fish_complete_suffix .root)"
|
||||
complete -c root -k -a "(__fish_complete_suffix .root)"
|
||||
|
|
|
@ -77,9 +77,9 @@ complete $rpm_select -s f -l file -d 'Query package owning specified file' -rF
|
|||
complete $rpm_select -l fileid -d 'Query package that contains a given file identifier, i.e. the MD5 digest of the file contents' -x
|
||||
complete $rpm_select -s g -l group -d 'Query packages with the specified group' -x
|
||||
complete $rpm_select -l hdrid -d 'Query package that contains a given header identifier, i.e. the SHA1 digest of the immutable header region' -x
|
||||
complete $rpm_select -s p -l package -d 'Query an (uninstalled) package in specified file' -xa "(__fish_complete_suffix .rpm)"
|
||||
complete $rpm_select -s p -l package -d 'Query an (uninstalled) package in specified file' -k -xa "(__fish_complete_suffix .rpm)"
|
||||
complete $rpm_select -l pkgid -d 'Query package that contains a given package identifier, i.e. the MD5 digest of the combined header and payload contents' -x
|
||||
complete $rpm_select -l specfile -d 'Parse and query specified spec-file as if it were a package' -xa "(__fish_complete_suffix .spec)"
|
||||
complete $rpm_select -l specfile -d 'Parse and query specified spec-file as if it were a package' -k -xa "(__fish_complete_suffix .spec)"
|
||||
complete $rpm_select -l tid -d 'Query package(s) that have the specified TID (transaction identifier)' -x
|
||||
complete $rpm_select -l triggeredby -d 'Query packages that are triggered by the specified packages' -x -a "(__fish_print_rpm_packages)"
|
||||
complete $rpm_select -l whatprovides -d 'Query all packages that provide the specified capability' -x
|
||||
|
@ -121,4 +121,4 @@ complete $rpm_mode -s q -l query -d 'Query installed packages'
|
|||
complete $rpm_mode -s V -l verify -d 'Verify package integrity'
|
||||
complete $rpm_mode -s e -l erase -d 'Erase package'
|
||||
|
||||
complete -c rpm -xa '(__fish_complete_suffix .rpm)'
|
||||
complete -c rpm -k -xa '(__fish_complete_suffix .rpm)'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
complete -c tex -o help -d "Display help and exit"
|
||||
complete -c tex -o version -d "Display version and exit"
|
||||
complete -c tex -x -a "(
|
||||
complete -c tex -k -x -a "(
|
||||
__fish_complete_suffix (commandline -ct) .tex '(La)TeX file'
|
||||
)"
|
||||
|
||||
|
|
|
@ -8,14 +8,14 @@ set -l formats raw row bitwise extfile
|
|||
set -l line_endings LF CR CRLF
|
||||
set -l woff_fmts woff woff2
|
||||
|
||||
complete -f -c ttx -a '(__fish_complete_suffix .otf; __fish_complete_suffix .ttf; __fish_complete_suffix .ttx; __fish_complete_suffix .ttc)'
|
||||
complete -c ttx -f -n __fish_is_first_token -a '(__fish_complete_suffix .otf; __fish_complete_suffix .ttf; __fish_complete_suffix .ttx)'
|
||||
complete -f -c ttx -k -a '(__fish_complete_suffix .otf; __fish_complete_suffix .ttf; __fish_complete_suffix .ttx; __fish_complete_suffix .ttc)'
|
||||
complete -c ttx -f -n __fish_is_first_token -k -a '(__fish_complete_suffix .otf; __fish_complete_suffix .ttf; __fish_complete_suffix .ttx)'
|
||||
|
||||
# General options
|
||||
complete -c ttx -f -s h -d'Show help message'
|
||||
complete -c ttx -f -l version -d'Show version info'
|
||||
complete -c ttx -x -s d -d'Set output folder' -a '(__fish_complete_directories)'
|
||||
complete -c ttx -r -s o -d'Set output filename' -a '(__fish_complete_suffix .otf; __fish_complete_suffix .ttf; __fish_complete_suffix .ttx)'
|
||||
complete -c ttx -r -s o -d'Set output filename' -k -a '(__fish_complete_suffix .otf; __fish_complete_suffix .ttf; __fish_complete_suffix .ttx)'
|
||||
complete -c ttx -f -s f -d'Force output overwrite'
|
||||
complete -c ttx -f -s v -d'Verbose output'
|
||||
complete -c ttx -f -s q -d'Quiet mode'
|
||||
|
@ -31,11 +31,11 @@ complete -c ttx -f -s i -d'Do NOT disassemble TT instructions'
|
|||
complete -c ttx -x -s z -d'Use FORMAT for EBDT or CBDT' -a "$formats"
|
||||
complete -c ttx -f -s e -d'Don\'t ignore decompilation errors'
|
||||
complete -c ttx -x -s y -d'Select font index for TrueType Collection'
|
||||
complete -c ttx -x -l unicodedata -d'Custom database for character names [UnicodeData.txt]' -a '(__fish_complete_suffix .txt)'
|
||||
complete -c ttx -x -l unicodedata -d'Custom database for character names [UnicodeData.txt]' -k -a '(__fish_complete_suffix .txt)'
|
||||
complete -c ttx -x -l newline -d'Set EOL format' -a "$line_endings"
|
||||
|
||||
# Compile options
|
||||
complete -c ttx -x -s m -d'Merge named TTF/OTF with SINGLE .ttx input' -a '(__fish_complete_suffix .otf; __fish_complete_suffix .ttf)'
|
||||
complete -c ttx -x -s m -d'Merge named TTF/OTF with SINGLE .ttx input' -k -a '(__fish_complete_suffix .otf; __fish_complete_suffix .ttf)'
|
||||
complete -c ttx -f -s b -d'Don\'t recalculate glyph bounding boxes'
|
||||
complete -c ttx -f -l recalc-timestamp -d'Set font modified timestamp to current time'
|
||||
complete -c ttx -x -l flavor -d'Set WOFF flavor' -a "$woff_fmts"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Completions for unlz4
|
||||
|
||||
complete -c unlz4 -x -a "
|
||||
complete -c unlz4 -k -x -a "
|
||||
(
|
||||
__fish_complete_suffix .lz4
|
||||
)
|
||||
|
|
|
@ -28,7 +28,7 @@ complete -c unzip -s M -d "pipe through `more` pager"
|
|||
if unzip -v 2>/dev/null | string match -eq Debian
|
||||
|
||||
# the first non-switch argument should be the zipfile
|
||||
complete -c unzip -n __fish_is_first_token -xa '(
|
||||
complete -c unzip -n __fish_is_first_token -k -xa '(
|
||||
__fish_complete_suffix .zip
|
||||
__fish_complete_suffix .jar
|
||||
__fish_complete_suffix .aar
|
||||
|
@ -41,7 +41,7 @@ if unzip -v 2>/dev/null | string match -eq Debian
|
|||
else
|
||||
|
||||
# all tokens should be zip files
|
||||
complete -c unzip -xa '(
|
||||
complete -c unzip -k -xa '(
|
||||
__fish_complete_suffix .zip
|
||||
__fish_complete_suffix .jar
|
||||
__fish_complete_suffix .aar
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Completions for unzstd
|
||||
|
||||
complete -c unzstd -x -a "
|
||||
complete -c unzstd -k -x -a "
|
||||
(
|
||||
__fish_complete_suffix .zst
|
||||
)
|
||||
|
|
|
@ -15,8 +15,8 @@ complete -c $progname -s V -d 'Show the version information'
|
|||
complete -c $progname -l signedby -d 'Name and email of person signing the repository'
|
||||
complete -c $progname -l privkey -d 'Path to the private RSA key to sign the repository. Defaults to ~/.ssh/id_rsa' -F
|
||||
|
||||
complete -c $progname -s a -d 'Register the binary package into the local repository' -xa "(__fish_complete_suffix .xbps)"
|
||||
complete -c $progname -s a -d 'Register the binary package into the local repository' -k -xa "(__fish_complete_suffix .xbps)"
|
||||
complete -c $progname -s c -d 'Remove obsolete entries found in the local repository' -xa "(__fish_complete_directories)"
|
||||
complete -c $progname -s r -d 'Remove obsolete and currently unregistered packages from the local repository' -xa "(__fish_complete_directories)"
|
||||
complete -c $progname -s s -d 'Initialize a signed repository with your specified RSA key' -xa "(__fish_complete_directories)"
|
||||
complete -c $progname -s S -d 'Sign a binary package archive with your specified RSA key' -xa "(__fish_complete_suffix .xbps)"
|
||||
complete -c $progname -s S -d 'Sign a binary package archive with your specified RSA key' -k -xa "(__fish_complete_suffix .xbps)"
|
||||
|
|
|
@ -1 +1 @@
|
|||
complete -c xdvi -x -a "(__fish_complete_suffix .dvi)"
|
||||
complete -c xdvi -k -x -a "(__fish_complete_suffix .dvi)"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Completions for the xpdf command
|
||||
# Vikas Gorur <vikas@80x25.org>
|
||||
#
|
||||
complete -c xpdf -x -a "(__fish_complete_suffix .pdf)"
|
||||
complete -c xpdf -k -x -a "(__fish_complete_suffix .pdf)"
|
||||
|
||||
complete -c xpdf -s g -d "Set the initial window geometry"
|
||||
complete -c xpdf -o title -d "Set the window title"
|
||||
|
|
|
@ -19,7 +19,7 @@ complete -c xsv -n __fish_is_first_token -xa stats -d 'Compute basic statistics'
|
|||
complete -c xsv -n __fish_is_first_token -xa table -d 'Align CSV data into columns'
|
||||
|
||||
# with a subcommand
|
||||
complete -c xsv -n 'not __fish_is_first_token' -xa '(__fish_complete_suffix .csv)'
|
||||
complete -c xsv -n 'not __fish_is_first_token' -k -xa '(__fish_complete_suffix .csv)'
|
||||
complete -c xsv -n 'not __fish_is_first_token' -s h -l help -d 'Display help for this xsv command'
|
||||
|
||||
# without a subcommand
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
complete -c xz -s z -l compress -d Compress
|
||||
complete -c xz -s d -l decompress -l uncompress -d Decompress -x -a "
|
||||
complete -c xz -s d -l decompress -l uncompress -d Decompress -k -x -a "
|
||||
(
|
||||
__fish_complete_suffix .xz
|
||||
__fish_complete_suffix .txz
|
||||
|
|
|
@ -118,7 +118,7 @@ complete -c $progname -n $query -s u -l upgrades -d 'List only out-of-date packa
|
|||
complete -c $progname -n "$query" -d 'Installed package' -xa $listinstalled -f
|
||||
# Yaourt only query options
|
||||
# Backup file is always saved as pacman-$date.tar.bz2
|
||||
complete -c $progname -n $query -r -l backupfile -a '(__fish_complete_suffix tar.bz2)' -d 'Query FILE instead of alpm/aur'
|
||||
complete -c $progname -n $query -r -l backupfile -k -a '(__fish_complete_suffix tar.bz2)' -d 'Query FILE instead of alpm/aur'
|
||||
complete -c $progname -n $query -l date -d 'List queries result sorted by installation date'
|
||||
|
||||
# Remove options
|
||||
|
@ -170,7 +170,7 @@ complete -c $progname -n "$files" -l machinereadable -d 'Show in machine readabl
|
|||
# Upgrade options
|
||||
# Theoretically, pacman reads packages in all formats that libarchive supports
|
||||
# In practice, it's going to be tar.xz, tar.gz or tar.zst
|
||||
complete -c $progname -n "$upgrade" -xa '(__fish_complete_suffix pkg.tar.zst; __fish_complete_suffix pkg.tar.xz; __fish_complete_suffix pkg.tar.gz)' -d 'Package file'
|
||||
complete -c $progname -n "$upgrade" -k -xa '(__fish_complete_suffix pkg.tar.zst; __fish_complete_suffix pkg.tar.xz; __fish_complete_suffix pkg.tar.gz)' -d 'Package file'
|
||||
|
||||
## Yaourt only stuff
|
||||
# Clean options
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
complete -c zcat -x -a "(
|
||||
complete -c zcat -k -x -a "(
|
||||
__fish_complete_suffix .gz
|
||||
__fish_complete_suffix .tgz
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
complete -x -c zopflipng -a "(__fish_complete_suffix .png)"
|
||||
complete -x -c zopflipng -k -a "(__fish_complete_suffix .png)"
|
||||
|
||||
complete -c zopflipng -s m -d "Compress more"
|
||||
complete -c zopflipng -l prefix -d "Add prefix"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Completions for zstd
|
||||
|
||||
complete -c zstd -s z -l compress -d "Compress (default)"
|
||||
complete -c zstd -s d -l decompress -l uncompress -d Decompress -x -a "
|
||||
complete -c zstd -s d -l decompress -l uncompress -d Decompress -k -x -a "
|
||||
(
|
||||
__fish_complete_suffix .zst
|
||||
)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Completions for zstdcat
|
||||
|
||||
complete -c zstdcat -x -a "
|
||||
complete -c zstdcat -k -x -a "
|
||||
(
|
||||
__fish_complete_suffix .zst
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Completions for zstdmt
|
||||
|
||||
complete -c zstdmt -s z -l compress -d "Compress (default)"
|
||||
complete -c zstdmt -s d -l decompress -l uncompress -d Decompress -x -a "
|
||||
complete -c zstdmt -s d -l decompress -l uncompress -d Decompress -k -x -a "
|
||||
(
|
||||
__fish_complete_suffix .zst
|
||||
)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
function __fish_complete_docutils -d "Completions for Docutils common options" -a cmd
|
||||
complete -x -c $cmd -a "
|
||||
complete -x -c $cmd -k -a "
|
||||
(
|
||||
__fish_complete_suffix .rst
|
||||
__fish_complete_suffix .txt
|
||||
|
|
Loading…
Reference in New Issue
Block a user