mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-31 20:36:03 +02:00
39221: update rm completion for BSD
This commit is contained in:
parent
c47c35cacc
commit
c001d1f2a2
|
@ -1,5 +1,8 @@
|
|||
2016-09-07 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* Matthew Martin: 39221: Completion/Unix/Command/_rm: update for
|
||||
BSD.
|
||||
|
||||
* 39218: Src/module.c: fix feature enables with math functions
|
||||
present. This caused parameters to be miscounted.
|
||||
|
||||
|
|
|
@ -22,16 +22,24 @@ if _pick_variant gnu=gnu unix --help; then
|
|||
'(- *)--version[output version information and exit]'
|
||||
)
|
||||
else
|
||||
args=(${args:#*--(force|recursive)\[*})
|
||||
args=(${args:#*)--*\[*})
|
||||
case $OSTYPE in
|
||||
freebsd*)
|
||||
dragonfly*|freebsd*|netbsd*|openbsd*)
|
||||
args+=(
|
||||
'-d[remove directories as well]'
|
||||
'(-i)-I[prompt when removing many files]'
|
||||
'-P[overwrite files before deleting them]'
|
||||
'-v[explain what is being done]'
|
||||
'-W[attempt to undelete named files]'
|
||||
"-x[don't cross file systems when removing a hierarchy]"
|
||||
'-P[overwrite files before deleting them]'
|
||||
)
|
||||
;;
|
||||
dragonfly*|freebsd*|netbsd*)
|
||||
args+=(
|
||||
'-v[explain what is being done]'
|
||||
'-W[attempt to undelete named files]'
|
||||
"-x[don't cross file systems when removing a hierarchy]"
|
||||
)
|
||||
;;
|
||||
dragonfly*|freebsd*)
|
||||
args+=(
|
||||
'(-i)-I[prompt when removing many files]'
|
||||
)
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue