Subject: Re: PATCH: _su (was Re: Are completions in some way heavy?)
From: Oliver Kiddle <[email-masked]>
To: Zsh Workers <[email-masked]>
Date: Fri, 17 Jun 2016 18:50:09 +0200
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On 9 Jun, Alexius Ludeman wrote:
>
> The su manpage for os x is available at:

Thanks for that. The patch to support it follows.

Oliver

diff --git a/Completion/Unix/Command/_su b/Completion/Unix/Command/_su
index 73b27ee..9009056 100644
--- a/Completion/Unix/Command/_su
+++ b/Completion/Unix/Command/_su
@@ -25,7 +25,7 @@ case $OSTYPE in
     )
     first="(--help --version)${first#???}"
   ;;
-  *bsd*|dragonfly*)
+  *bsd*|darwin*|dragonfly*)
     args+=(
       '-c[use settings from specified login class]:class'
       '-f[if the invoked shell is csh, prevent it from reading .cshrc]'