zsh-workers
 help / color / mirror / code / Atom feed
50d2710fcfd5b61bca9d396aa87bc66ed9700ede blob 944 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
37
38
 
#compdef ed

local -a args

args=(
  '(-p --prompt)'{-p+,--prompt=}'[specify prompt]:prompt:'
  '(-s --quiet --silent)'{-s,--quiet,--silent}'[suppress diagnostics]'
)

if _pick_variant gnu=GNU unix --version; then
  args+=(
    '(-G --traditional)'{-G,--traditional}'[run in compatibility mode]'
    '(- :)'{-h,--help}'[display help]'
    '(-l --loose-exit-status)'{-l,--loose-exit-status}'[exit 0 even if a command fails]'
    '(-r --restricted)'{-r,--restricted}'[run in restricted mode]'
    '(- :)'{-V,--version}'[display version]'
    '(-v --verbose)'{-v,--verbose}'[be verbose]'
  )
else
  args=(-A '-*' ${args:#*\)--*})
  case $OSTYPE in
    dragonfly*|freebsd*|netbsd*|solaris*)
      args+=(
        '-x[prompt for an encryption key]'
      )
      ;|
    netbsd*)
      args+=(
        '-E[enable extended regular expressions]'
        '-S[disable ! command]'
      )
      ;;
  esac
fi

_arguments -s -S \
  $args \
  ':file:_files'
debug log:

solving 50d2710fc ...
found 50d2710fc 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).