diff options
author | Oliver Kiddle <opk@zsh.org> | 2017-10-11 01:24:01 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2017-10-11 01:24:01 +0200 |
commit | 61b544a06832eb29035fb95a6bd942f77881300a (patch) | |
tree | 1f3d7051a8ea41b7a8320063e6454e461104384d /Completion/Unix/Command/_rm | |
parent | a8c2b908107fb658e3859ce8f3d61f2c31354227 (diff) | |
download | zsh-61b544a06832eb29035fb95a6bd942f77881300a.tar.gz zsh-61b544a06832eb29035fb95a6bd942f77881300a.tar.xz zsh-61b544a06832eb29035fb95a6bd942f77881300a.zip |
41855: completion option updates for OpenBSD 6.2 and handle macOS in rm completion
Diffstat (limited to 'Completion/Unix/Command/_rm')
-rw-r--r-- | Completion/Unix/Command/_rm | 10 |
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]" ) ;| |