blob: 3eb78292185f707400312abcdaddd4923e190ea5 (
plain)
1
2
3
4
5
6
7
8
|
function __fish_complete_groups --description "Print a list of local groups, with group members as the description"
if test -x /usr/bin/getent
getent group | cut -d ':' -f 1,4 | sed 's/:/\t/'
else
cut -d ':' -f 1,4 /etc/group | sed 's/:/\t/'
end
end
|