2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-16 23:14:04 +00:00
fish-shell/share/functions/__fish_complete_groups.fish

5 lines
197 B
Fish
Raw Normal View History

function __fish_complete_groups --description "Print a list of local groups, with group members as the description"
cat /etc/group | sed -e "s/^\([^:]*\):[^:]*:[^:]*:\(.*\)/\1\tMembers: \2/"
end