remove sed from __fish_complete_groups.fish

This commit is contained in:
Wilke Schwiedop 2018-04-15 18:59:35 +02:00 committed by Fabian Homborg
parent 4d864aea1c
commit 83637e2178

View file

@ -1,8 +1,8 @@
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 | sed 's/:/\t/'
getent group | cut -d ':' -f 1,4 | string replace : \t
else
cut -d ':' -f 1,4 /etc/group | sed 's/:/\t/'
cut -d ':' -f 1,4 /etc/group | string replace : \t
end
end