2007-09-22 04:52:12 +08:00
|
|
|
|
|
|
|
function __fish_print_users --description "Print a list of local users"
|
2012-11-22 17:07:19 +08:00
|
|
|
if test -x /usr/bin/getent
|
|
|
|
getent passwd | cut -d : -f 1
|
|
|
|
else
|
|
|
|
sgrep -ve '^#' /etc/passwd | cut -d : -f 1
|
|
|
|
end
|
2007-09-22 04:52:12 +08:00
|
|
|
end
|
|
|
|
|