zsh-workers
 help / color / mirror / code / Atom feed
59aafc26a91b95dbbaa210586d5aa91961a4a669 blob 558 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
 
#compdef sh ksh bash zsh csh tcsh rc

if [[ $service == zsh ]]; then
  # try a bit harder
  if [[ ${words[CURRENT-1]} == -o ]]; then
    _options
    # no other possibilities
    return
  fi
fi

if (( CURRENT == ${words[(i)-c]} + 1 )); then
  compset -q
  _normal
else
  local n=${words[(b:2:i)[^-]*]}
  if (( n <= CURRENT )); then
    compset -n $n
    _alternative \
      'files:file:_files' \
      'commands:command:_normal' && return 0
  fi
  _default
fi

local ret=$?

if [[ $service == zsh ]] && _arguments -S -s -- '*:'; then
  ret=0
fi

return ret
debug log:

solving 59aafc2 ...
found 59aafc2 in https://inbox.vuxu.org/zsh-workers/131009200134.ZM3418@torch.brasslantern.com/
found 7258e42 in https://git.vuxu.org/mirror/zsh/
preparing index
index prepared:
100644 7258e4260824546aad85214286045ac23ffa656d	Completion/Unix/Command/_sh

applying [1/1] https://inbox.vuxu.org/zsh-workers/131009200134.ZM3418@torch.brasslantern.com/
diff --git a/Completion/Unix/Command/_sh b/Completion/Unix/Command/_sh
index 7258e42..59aafc2 100644

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

index at:
100644 59aafc26a91b95dbbaa210586d5aa91961a4a669	Completion/Unix/Command/_sh

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