zsh-workers
 help / color / mirror / code / Atom feed
* Completions for fold
@ 2008-10-21 21:14 Omari Norman
  0 siblings, 0 replies; only message in thread
From: Omari Norman @ 2008-10-21 21:14 UTC (permalink / raw)
  To: ZSH Workers List

[-- Attachment #1: Type: text/plain, Size: 39 bytes --]

Here are some completions for fold...


[-- Attachment #2: _fold --]
[-- Type: text/plain, Size: 746 bytes --]

#compdef fold

local arguments

if _pick_variant gnu="Free Software Foundation" unix --version; then
    arguments=(
        '(-b --bytes)'{-b,--bytes}'[count bytes rather than columns]'
        '(-s --spaces)'{-s,--spaces}'[break at spaces]'
        '(-w --width)'{-w+,--width=}'[use WIDTH columns instead of 80]:width:'
        '(-h --help)'{-h,--help}'[display help and exit]'
        '(-v --version)'{-v,--version}'[display version and exit]'
        '*:filename:_files'
    )
else
    arguments=(
        -b'[count bytes rather than columns]'
        -s'[break at spaces]'
        -w'[use WIDTH columns instead of 80]:width:'
        '*:filename:_files'
    )
fi

[[ -n $gnu ]] && _arguments -s -w -S : $arguments || _arguments : $arguments

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-21 21:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-21 21:14 Completions for fold Omari Norman

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).