mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 02:13:38 +08:00
9 lines
286 B
Fish
9 lines
286 B
Fish
|
|
function __fish_complete_groups --description "Print a list of local groups, with group members as the description"
|
|
if command -sq getent
|
|
getent group | cut -d ':' -f 1,4 | string replace : \t
|
|
else
|
|
cut -d ':' -f 1,4 /etc/group | string replace : \t
|
|
end
|
|
end
|