mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-10-04 01:41:18 +02:00
7 lines
154 B
Plaintext
7 lines
154 B
Plaintext
|
#compdef newgrp
|
||
|
|
||
|
: ${(A)groups:=${${(s: :)$(</etc/group)}%%:*}}
|
||
|
# : ${(A)groups:=${${(s: :)$(ypcat group.byname)}%%:*}} # If you use NIS
|
||
|
|
||
|
compadd $groups
|