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_user_ids --description "Complete user IDs with user name as description"
3    if command -sq getent
4        getent passwd | string replace -f -r '^([[:alpha:]_][^:]*):[^:]*:(\d+).*' '$2\t$1'
5    else if test -r /etc/passwd
6        string replace -f -r '^([[:alpha:]_][^:]*):[^:]*:(\d+).*' '$2\t$1' </etc/passwd
7    end
8end