mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01: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
|