diff options
| author | Oliver Kiddle <opk@zsh.org> | 2017-10-07 22:26:51 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2017-10-07 22:26:51 +0200 |
| commit | 69fcc22dc84e8411870ba8f2a4c876e223ad2a08 (patch) | |
| tree | 1ccdeb6677938ae9f23ec0a55ed59f5045a26a56 /Completion/Unix/Command/_seq | |
| parent | unposted: zsh/stat docs: Rephrase to avoid ambiguity due to the ambiguous rel... (diff) | |
| download | zsh-69fcc22dc84e8411870ba8f2a4c876e223ad2a08.tar zsh-69fcc22dc84e8411870ba8f2a4c876e223ad2a08.tar.gz zsh-69fcc22dc84e8411870ba8f2a4c876e223ad2a08.tar.bz2 zsh-69fcc22dc84e8411870ba8f2a4c876e223ad2a08.tar.lz zsh-69fcc22dc84e8411870ba8f2a4c876e223ad2a08.tar.xz zsh-69fcc22dc84e8411870ba8f2a4c876e223ad2a08.tar.zst zsh-69fcc22dc84e8411870ba8f2a4c876e223ad2a08.zip | |
41823: new completions for some GNU coreutils utilities
Diffstat (limited to 'Completion/Unix/Command/_seq')
| -rw-r--r-- | Completion/Unix/Command/_seq | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_seq b/Completion/Unix/Command/_seq new file mode 100644 index 000000000..5b825675f --- /dev/null +++ b/Completion/Unix/Command/_seq @@ -0,0 +1,28 @@ +#compdef seq gseq + +local variant args + +_pick_variant -r variant gnu=GNU $OSTYPE --version + +args=( ':: :_guard "^-[^0-9]*" '{first,step,last} ) +case $variant in + gnu) + args+=( + '(--help --version)'{-f+,--format=}'[use printf style floating-point format]:format' + '(--help --version -s --separator)'{-s+,--separator=}'[use specified separator for numbers]:separator [\n]' + '(--help --version -w --equal-width)'{-w,--equal-width}'[equalize width by padding with leading zeroes]' + '(- 1 2 3)--help[display usage information]' + '(- 1 2 3)--version[display version information]' + ) + ;; + *) + args+=( + '-f+[use printf style floating-point format]:format' + '-s+[use specified separator for numbers]:separator [\n]' + '-t+[use specified string to terminate numbers]:string [\n]' + '-w[equalize width by padding with leading zeroes]' + ) + ;; +esac + +_arguments -s -A '-[^1-9]*' $args |
