From 4f48ce208b89b0790f113642aab200a65abf7816 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 27 Sep 2019 00:27:45 +0200 Subject: 44781: add completion of SELinux contexts --- Completion/Unix/Command/_mkdir | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_mkdir') diff --git a/Completion/Unix/Command/_mkdir b/Completion/Unix/Command/_mkdir index 0ae6be14b..4cd6bda32 100644 --- a/Completion/Unix/Command/_mkdir +++ b/Completion/Unix/Command/_mkdir @@ -22,7 +22,8 @@ case $variant in aopts=() if [[ $OSTYPE == linux* ]]; then args+=( - '(-Z --context)'{-Z,--context=}'[set SELinux context]:SELinux context' + '(--context)-Z[set SELinux context]' + '(-Z)--context=-[set SELinux context]::SELinux context:_selinux_contexts' ) fi args+=( -- cgit 1.4.1