mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-01-08 16:26:48 +00:00
Replace RE with glob expressions
This commit is contained in:
parent
0ff0ece5e2
commit
a8c872671c
@ -100,10 +100,10 @@ zstyle -e ':completion:*:hosts' hosts 'reply=(
|
||||
|
||||
# Don't complete uninteresting users...
|
||||
zstyle ':completion:*:*:*:users' ignored-patterns nobody nobody4 noaccess '_*' \
|
||||
$([[ $OSTYPE =~ solaris ]] && max_uid=100 || max_uid=500
|
||||
$([[ $OSTYPE = *(linux|darwin|cygwin)* ]] && min_uid=500 || min_uid=100
|
||||
IFS=:
|
||||
while read user pass uid remainder; do
|
||||
[[ ! $user =~ (^#|root) ]] && ((uid < max_uid)) && echo $user
|
||||
while read -r user pass uid remainder; do
|
||||
[[ "$user" != (\#*|root) ]] && ((uid < min_uid)) && echo $user
|
||||
done </etc/passwd
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user