fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
377 B8 linesraw
1# localization: skip(private)
2function __fish_complete_group_ids --description "Complete group IDs with group name as description"
3    if command -sq getent
4        getent group | string replace -f -r '^([[:alpha:]_][^:]*):[^:]*:(\d+).*' '$2\t$1'
5    else if test -r /etc/group
6        string replace -f -r '^([[:alpha:]_][^:]*):[^:]*:(\d+).*' '$2\t$1' </etc/group
7    end
8end