mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-07-12 05:01:27 +02:00
32 lines
606 B
Text
32 lines
606 B
Text
#compdef rmdir grmdir zf_rmdir
|
|
|
|
local variant
|
|
local -a args aopts=( -A '-*' )
|
|
|
|
args=(
|
|
'(-p --parents)'{-p,--parents}'[remove each component of the specified paths]'
|
|
)
|
|
|
|
_pick_variant -r variant -b zsh gnu=GNU $OSTYPE --version
|
|
case $variant; in
|
|
gnu)
|
|
aopts=()
|
|
args+=(
|
|
'--ignore-fail-on-non-empty[ignore failure if directory is non-empty]'
|
|
'(-v --verbose)'{-v,--verbose}'[be verbose]'
|
|
)
|
|
;;
|
|
zsh)
|
|
args=()
|
|
;;
|
|
*)
|
|
args=(${args:#*\)--*})
|
|
;|
|
|
dragonfly*|freebsd*)
|
|
args+=('-v[be verbose]')
|
|
;;
|
|
esac
|
|
|
|
_arguments -s -S $aopts \
|
|
$args \
|
|
'*: :_directories'
|