From 9852150123d0bf24dc7b496873b1b8af0f41a299 Mon Sep 17 00:00:00 2001 From: Kernc Date: Sun, 2 Mar 2014 00:11:26 +0100 Subject: [PATCH] except SunOS only --- modules/completion/init.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/completion/init.zsh b/modules/completion/init.zsh index 59f2b34c..f68d713e 100644 --- a/modules/completion/init.zsh +++ b/modules/completion/init.zsh @@ -100,10 +100,10 @@ zstyle -e ':completion:*:hosts' hosts 'reply=( # Don't complete uninteresting users... zstyle ':completion:*:*:*:users' ignored-patterns nobody nobody4 noaccess '_*' \ - $([[ $OSTYPE = *(linux|darwin|cygwin)* ]] && min_uid=500 || min_uid=100 + $([[ "$OSTYPE" = SunOS ]] && uid_min=100 || uid_min=500 IFS=: while read -r user pass uid remainder; do - [[ "$user" != (\#*|root) ]] && ((uid < min_uid)) && echo $user + [[ "$user" != (\#*|root) ]] && ((uid < uid_min)) && echo $user done