mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-06 09:01:13 +02:00
6 lines
154 B
Text
6 lines
154 B
Text
#compdef newgrp
|
|
|
|
: ${(A)groups:=${${(s: :)$(</etc/group)}%%:*}}
|
|
# : ${(A)groups:=${${(s: :)$(ypcat group.byname)}%%:*}} # If you use NIS
|
|
|
|
compadd $groups
|