aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_print_users.fish
blob: 0a67ab55f0f5363425a38e50c8364af6396ec161 (plain)
1
2
3
4
5
6
7
8
9

function __fish_print_users --description "Print a list of local users"
	if test -x /usr/bin/getent
		getent passwd | cut -d : -f 1
	else
		sgrep -ve '^#' /etc/passwd | cut -d : -f 1
	end
end