diff options
| author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-03-30 12:08:57 +0200 |
|---|---|---|
| committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-03-30 12:09:31 +0200 |
| commit | 36e8471a2c888a693ebcce4b39da2764b1475f56 (patch) | |
| tree | 0bbb5db40559bfbb2ed7f18a8d1a67232b06b9e7 /Completion/Unix/Command | |
| parent | 42564: _adb: Various improvements (diff) | |
| download | zsh-36e8471a2c888a693ebcce4b39da2764b1475f56.tar zsh-36e8471a2c888a693ebcce4b39da2764b1475f56.tar.gz zsh-36e8471a2c888a693ebcce4b39da2764b1475f56.tar.bz2 zsh-36e8471a2c888a693ebcce4b39da2764b1475f56.tar.lz zsh-36e8471a2c888a693ebcce4b39da2764b1475f56.tar.xz zsh-36e8471a2c888a693ebcce4b39da2764b1475f56.tar.zst zsh-36e8471a2c888a693ebcce4b39da2764b1475f56.zip | |
42566: new strings completion
Diffstat (limited to 'Completion/Unix/Command')
| -rw-r--r-- | Completion/Unix/Command/_strings | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_strings b/Completion/Unix/Command/_strings new file mode 100644 index 000000000..8eeff704b --- /dev/null +++ b/Completion/Unix/Command/_strings @@ -0,0 +1,73 @@ +#compdef strings gstrings eu-strings + +local args variant format bytes +format='[precede each string by its byte offset in the file]:format:((d\:decimal o\:octal x\:hexadecimal))' +bytes='[specify minimum string length]:length (bytes) [4]' +args=( + '(-t --radix)-o[precede each string by its decimal byte offset]' + '!(-n --bytes)-'{1,2,3,4,5,6,7,8,9} +) + +if _pick_variant -r variant binutils=GNU elftoolchain=elftoolchain elfutils=elfutils unix -V; then + args+=( + '(-a --all -d --data)'{-a,--all}'[look everywhere in file, not just initialised data space of object files]' + '(-e --encoding)'{-e+,--encoding=}'[select character size and endianness]:character type:(( + s\:7-bit + S\:8-bit + b\:16-bit\ big-endian + l\:16-bit\ little-endian + B\:32-bit\ big-endian + L\:32-bit\ little-endian))' + '(-f --print-file-name)'{-f,--print-file-name}'[print name of the file before each string]' + '(-n --bytes)'{-n+,--bytes=}"$bytes" + '(-d -t --radix)'{-t+,--radix=}"$format" + '(- *)--help[display help information]' |
