diff --git a/share/functions/__fish_complete_groups.fish b/share/functions/__fish_complete_groups.fish index 3eb782921..ca2f4ccb5 100644 --- a/share/functions/__fish_complete_groups.fish +++ b/share/functions/__fish_complete_groups.fish @@ -1,6 +1,6 @@ function __fish_complete_groups --description "Print a list of local groups, with group members as the description" - if test -x /usr/bin/getent + if command -s getent >/dev/null getent group | cut -d ':' -f 1,4 | sed 's/:/\t/' else cut -d ':' -f 1,4 /etc/group | sed 's/:/\t/'