about summary refs log tree commit diff
path: root/Completion/User/_groups
blob: 975189174b3de76b82f5efb526f52c6d300feee8 (plain) (blame)
1
2
3
4
5
6
#compdef newgrp

: ${(A)groups:=${${(s: :)$(</etc/group)}%%:*}}
# : ${(A)groups:=${${(s: :)$(ypcat group.byname)}%%:*}} # If you use NIS

compadd $groups