fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
a53db7256
master
1# localization: skip(private) 2function __fish_complete_user_ids --description"Complete user IDs with user name as description" 3if command -sq getent 4getent passwd| string replace -f -r'^([[:alpha:]_][^:]*):[^:]*:(\d+).*' '$2\t$1' 5else if test -r /etc/passwd 6string replace -f -r'^([[:alpha:]_][^:]*):[^:]*:(\d+).*' '$2\t$1' < /etc/passwd 7end 8end