zsh-workers
 help / color / mirror / code / Atom feed
0f5e1691246b9a060e3ffa2377491bd099c50e98 blob 498 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
 
#compdef rmdir grmdir

local -a args

args=(
  '(-p --parents)'{-p,--parents}'[remove each component of the specified paths]'
)

if _pick_variant gnu=GNU unix --version; then
  args+=(
    '--ignore-fail-on-non-empty[ignore failure if directory is non-empty]'
    '(-v --verbose)'{-v,--verbose}'[be verbose]'
  )
else
  args=(${args:#*\)--*})
  if [[ $OSTYPE == (dragonfly|freebsd)* ]]; then
    args+=('-v[be verbose]')
  fi
fi

_arguments -s -S -A '-*' \
  $args \
  '*:directories:_directories'
debug log:

solving 0f5e16912 ...
found 0f5e16912 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).