zsh-workers
 help / color / mirror / code / Atom feed
1b80bd7d90c5d65b67d7aaf09cdf8009d5cebe80 blob 588 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 sh ksh bash zsh csh tcsh rc

if [[ $service == zsh ]]; then
  _arguments -S -s : \
    '*-o+[set named option]:option:_options' \
    '*+o+[unset named option]:option:_options' \
    '(1 -)-c[run a command]:command:_cmdstring' \
    '(-)1:script file:_files' \
    '*:command arguments' \
    -- && return 0
  return 1
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
debug log:

solving 1b80bd7 ...
found 1b80bd7 in https://inbox.vuxu.org/zsh-workers/91D49604-A261-46A4-95BC-624420629B84@kba.biglobe.ne.jp/
found 1b51122 in https://git.vuxu.org/mirror/zsh/
preparing index
index prepared:
100644 1b51122120d741ecce87b9154467c13aed5f4aa4	Completion/Unix/Command/_sh

applying [1/1] https://inbox.vuxu.org/zsh-workers/91D49604-A261-46A4-95BC-624420629B84@kba.biglobe.ne.jp/
diff --git a/Completion/Unix/Command/_sh b/Completion/Unix/Command/_sh
index 1b51122..1b80bd7 100644

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

index at:
100644 1b80bd7d90c5d65b67d7aaf09cdf8009d5cebe80	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).