1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-04 01:41:18 +02:00
zsh/Completion/User/_groups

7 lines
154 B
Plaintext
Raw Normal View History

1999-06-27 07:33:25 +02:00
#compdef newgrp
: ${(A)groups:=${${(s: :)$(</etc/group)}%%:*}}
# : ${(A)groups:=${${(s: :)$(ypcat group.byname)}%%:*}} # If you use NIS
compadd $groups