mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
remove sed from __fish_complete_groups.fish
This commit is contained in:
parent
4d864aea1c
commit
83637e2178
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue