Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completions for fold
- X-seq: zsh-workers 25923
- From: Omari Norman <omari@xxxxxxxxxxxxxxxxx>
- To: ZSH Workers List <zsh-workers@xxxxxxxxxx>
- Subject: Completions for fold
- Date: Tue, 21 Oct 2008 17:14:49 -0400
- Mail-followup-to: ZSH Workers List <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Here are some completions for fold...
#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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author