diff options
| author | dana <dana@dana.is> | 2018-06-04 10:04:27 -0500 |
|---|---|---|
| committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-06-07 18:19:55 +0200 |
| commit | 64ef1eddfd4fa79a0720945e189cf7c3a44bde9c (patch) | |
| tree | 9237ef4615c0643b783d5fac4f007f9cb4fc693d /Completion/Unix/Command/_shasum | |
| parent | users/23434: initialise UNDO_LIMIT_NO so that an initial undo doesn't clear t... (diff) | |
| download | zsh-64ef1eddfd4fa79a0720945e189cf7c3a44bde9c.tar zsh-64ef1eddfd4fa79a0720945e189cf7c3a44bde9c.tar.gz zsh-64ef1eddfd4fa79a0720945e189cf7c3a44bde9c.tar.bz2 zsh-64ef1eddfd4fa79a0720945e189cf7c3a44bde9c.tar.lz zsh-64ef1eddfd4fa79a0720945e189cf7c3a44bde9c.tar.xz zsh-64ef1eddfd4fa79a0720945e189cf7c3a44bde9c.tar.zst zsh-64ef1eddfd4fa79a0720945e189cf7c3a44bde9c.zip | |
42931: completion for several utilities especially for checksums across a variety of systems
Diffstat (limited to 'Completion/Unix/Command/_shasum')
| -rw-r--r-- | Completion/Unix/Command/_shasum | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_shasum b/Completion/Unix/Command/_shasum new file mode 100644 index 000000000..950a47763 --- /dev/null +++ b/Completion/Unix/Command/_shasum @@ -0,0 +1,24 @@ +#compdef shasum -P shasum(|5).* + +# This function covers the `shasum` script included with Perl (and notably the +# primary SHA digest tool on macOS). See `_md5sum` for the GNU digest utilities +# and `_cksum` for the BSD ones. +# +# @todo It's possible that someone could symlink this script to `sha1sum` or +# whatever; we might want to detect that some day. + +_arguments -s -S : \ + '(: -)'{-h,--help}'[display help information]' \ + '(: -)'{-v,--version}'[display version information]' \ + + '(sum)' \ + '(chk)'{-0,--01}'[read in BITS mode]' \ + '(chk)'{-b,--binary}'[read in binary mode]' \ + '(chk)'{-p,--portable}'[read in portable mode]' \ + '(chk)'{-t,--text}'[read in text mode]' \ + + 'chk' \ + '(sum)'{-c,--check}'[verify checksums from input files]' \ + '(sum -s -w --status --warn)'{-s,--status}'[suppress all output]' \ + '(sum -s -w --status --warn)'{-w,--warn}'[warn about each improperly formatted checksum line]' \ + + misc \ + '(-a --algorithm)'{-a+,--algorithm=}'[specify algorithm]:algorithm:(1 224 256 384 512 512224 512256)' \ + '*: :_files' |
