zsh-workers
 help / color / mirror / code / Atom feed
cccdb6c1ea22c9da21937e4ff7d4dd08703f6d3f blob 785 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
#compdef fold gfold

local curcontext=$curcontext variant
local -a context line state state_descr args
local -A opt_args

_pick_variant -r variant busybox=BusyBox gnu='Free Soft' unix --version

args=(
  '(-b --bytes)'{-b,--bytes}'[count bytes rather than columns]'
  '(: -)--help[display help information]'
  '(-s --spaces)'{-s,--spaces}'[fold on whitespace]'
  '(-w --width)'{-w+,--width=}'[specify line width]:line width (columns or bytes)'
  '(: -)--version[display version information]'
  '*: :_files'
)

# Non-GNU variants don't support long options (except BusyBox's --help)
if [[ $variant == *busybox* ]]; then # See also: _busybox
  args=( ${args:#((#s)|*\))(\*|)--^help*} )
elif [[ $variant != gnu ]]; then
  args=( ${args:#((#s)|*\))(\*|)--*} )
fi

_arguments -s -S : $args
debug log:

solving cccdb6c1e ...
found cccdb6c1e in https://inbox.vuxu.org/zsh-workers/0ED247D6-B6E3-40AB-A59D-DDEFC4083BEE@dana.is/

applying [1/1] https://inbox.vuxu.org/zsh-workers/0ED247D6-B6E3-40AB-A59D-DDEFC4083BEE@dana.is/
diff --git a/Completion/Unix/Command/_fold b/Completion/Unix/Command/_fold
new file mode 100644
index 000000000..cccdb6c1e

Checking patch Completion/Unix/Command/_fold...
Applied patch Completion/Unix/Command/_fold cleanly.

index at:
100644 cccdb6c1ea22c9da21937e4ff7d4dd08703f6d3f	Completion/Unix/Command/_fold

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).