zsh-workers
 help / color / mirror / code / Atom feed
44ba19c059668413e9ae274ae7137fffce1ce4d6 blob 506 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
26
27
28
29
30
31
32
33
34
35
36
 
#autoload

local i os s=2
local -a args

i=${@[(i):]}
(( i > $# )) && i=0
args=(${@[1,i]})
shift $i

case $OSTYPE in
  aix*) os=A;;
  cygwin*) os=C;;
  dragonfly*) os=D;;
  freebsd*) os=F;;
  hpux*) os=H;;
  irix*) os=I;;
  linux*) os=L;;
  darwin*) os=M;;
  netbsd*) os=N;;
  openbsd*) os=O;;
  solaris*) os=S;;
esac

for 1; do
  if [[ $1 == [[:upper:]]## ]]; then
    (( s == 2 )) && s=0
    [[ $1 == *$os* ]] && s=1
  else
    (( s )) || continue
    args+=($1)
    s=2
  fi
done

_arguments "$args[@]"
debug log:

solving 44ba19c05 ...
found 44ba19c05 in https://inbox.vuxu.org/zsh-workers/20161212052803.GA53519@CptOrmolo.darkstar/

applying [1/1] https://inbox.vuxu.org/zsh-workers/20161212052803.GA53519@CptOrmolo.darkstar/
diff --git a/Completion/Base/Utility/_os_arguments b/Completion/Base/Utility/_os_arguments
new file mode 100755
index 000000000..44ba19c05

Checking patch Completion/Base/Utility/_os_arguments...
Applied patch Completion/Base/Utility/_os_arguments cleanly.

index at:
100755 44ba19c059668413e9ae274ae7137fffce1ce4d6	Completion/Base/Utility/_os_arguments

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