summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_rm
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_rm')
-rw-r--r--Completion/Unix/Command/_rm10
1 files changed, 7 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_rm b/Completion/Unix/Command/_rm
index 6d728b157..912b5eadf 100644
--- a/Completion/Unix/Command/_rm
+++ b/Completion/Unix/Command/_rm
@@ -24,16 +24,20 @@ if _pick_variant gnu=gnu unix --help; then
else
args=(${args:#*)--*\[*})
case $OSTYPE in
- dragonfly*|freebsd*|netbsd*|openbsd*)
+ darwin*|dragonfly*|freebsd*|netbsd*|openbsd*)
args+=(
'-d[remove directories as well]'
'-P[overwrite files before deleting them]'
+ '-v[explain what is being done]'
)
;|
- dragonfly*|freebsd*|netbsd*)
+ darwin*|dragonfly*|freebsd*|netbsd*)
args+=(
- '-v[explain what is being done]'
'-W[attempt to undelete named files]'
+ )
+ ;|
+ dragonfly*|freebsd*|netbsd*)
+ args+=(
"-x[don't cross file systems when removing a hierarchy]"
)
;|