mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-07 18:11:20 +01: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
|