zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH 1/2] _mkdir: Don't offer a linux-specific optiont in the 'zsh' variant.
@ 2017-08-29  2:28 Daniel Shahaf
  2017-08-29  2:28 ` [PATCH 2/2] _mkdir: Honour the 'command' and 'builtin' precommand modifiers Daniel Shahaf
  2017-08-29 11:06 ` [PATCH 1/2] _mkdir: Don't offer a linux-specific optiont in the 'zsh' variant Oliver Kiddle
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Shahaf @ 2017-08-29  2:28 UTC (permalink / raw)
  To: zsh-workers

---
 Completion/Unix/Command/_mkdir | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/Completion/Unix/Command/_mkdir b/Completion/Unix/Command/_mkdir
index f2299f7c7..b104d3d60 100644
--- a/Completion/Unix/Command/_mkdir
+++ b/Completion/Unix/Command/_mkdir
@@ -9,14 +9,6 @@ args=(
   '(-)*: :->directories'
 )
 
-case "$OSTYPE" in
-  linux*)
-    args+=(
-      '(-Z --context)'{-Z,--context=}'[set SELinux context]:SELinux context'
-    )
-  ;;
-esac
-
 _pick_variant -r variant gnu=gnu zsh='\(eval\)' $OSTYPE --help
 # It can still happen that there is a precommand command or builtin in the line.
 # In such cases, the variant has to be modified suitably, after further checking
@@ -42,12 +34,12 @@ case $variant in
   ;|
   gnu)
     args+=(
+      '(-Z --context)'{-Z,--context=}'[set SELinux context]:SELinux context'
       '(- :)--help[display help information]'
       '(- :)--version[display version information]'
     )
   ;;
   zsh) # remove all options
-    args=( '*: :->directories' )
   ;;
   *) # non-GNU: remove long options
     args=( ${${${args:#(|*\))--*}//--[^ )]#/}/\( #\)/} )


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-30  0:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-29  2:28 [PATCH 1/2] _mkdir: Don't offer a linux-specific optiont in the 'zsh' variant Daniel Shahaf
2017-08-29  2:28 ` [PATCH 2/2] _mkdir: Honour the 'command' and 'builtin' precommand modifiers Daniel Shahaf
2017-08-29 11:06 ` [PATCH 1/2] _mkdir: Don't offer a linux-specific optiont in the 'zsh' variant Oliver Kiddle
2017-08-30  0:19   ` Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).