zsh-workers
 help / color / mirror / code / Atom feed
21ebfc3b270fcf20317e6e496993d31a1876e3ba blob 537 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
 
#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
  _cmdstring
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=$?

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

return ret
debug log:

solving 21ebfc3 ...
found 21ebfc3 in https://git.vuxu.org/mirror/zsh/

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