Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Completions for fold



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