Files
fish-shell/share/functions/__fish_complete_groups.fish
Johannes Altmanninger 2c0e912fe1 Mark private functions that don't need localization
See the next commit.

Part of #11833

(cherry picked from commit a53db72564)
2025-09-30 11:52:41 +02:00

13 lines
418 B
Fish

# localization: skip(private)
function __fish_complete_groups --description "Print a list of local groups, with group members as the description"
if command -sq getent
getent group | while read -l line
string split -f 1,4 : -- $line | string join \t
end
else
while read -l line
string split -f 1,4 : -- $line | string join \t
end </etc/group
end
end