mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-17 15:01:40 +02:00
42730: Complete the options for rmdir
This commit is contained in:
parent
17af784c5d
commit
11dbc95962
3 changed files with 27 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2018-04-29 Oliver Kiddle <okiddle@yahoo.co.uk>
|
2018-04-29 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||||
|
|
||||||
|
* Matthew Martin: 42730: Completion/Unix/Command/_rmdir,
|
||||||
|
Completion/Unix/Type/_directories: Complete the options for rmdir
|
||||||
|
|
||||||
* Matthew Martin: 42729: Completion/Unix/Command/_df:
|
* Matthew Martin: 42729: Completion/Unix/Command/_df:
|
||||||
update df completion for [DFNO]BSD
|
update df completion for [DFNO]BSD
|
||||||
|
|
||||||
|
|
23
Completion/Unix/Command/_rmdir
Normal file
23
Completion/Unix/Command/_rmdir
Normal file
|
@ -0,0 +1,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'
|
|
@ -1,4 +1,4 @@
|
||||||
#compdef rmdir grmdir zf_rmdir dircmp -P -value-,*path,-default-
|
#compdef zf_rmdir dircmp -P -value-,*path,-default-
|
||||||
|
|
||||||
local expl
|
local expl
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue