From 3f526698ab90286a2b7a0c5447a4f4218ef8ce36 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 12 Aug 2014 14:42:49 -0700 Subject: [PATCH] Make __fish_print_users work on OS X via dscl --- share/functions/__fish_print_users.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/functions/__fish_print_users.fish b/share/functions/__fish_print_users.fish index 0a67ab55f..90e690eb1 100644 --- a/share/functions/__fish_print_users.fish +++ b/share/functions/__fish_print_users.fish @@ -2,6 +2,8 @@ function __fish_print_users --description "Print a list of local users" if test -x /usr/bin/getent getent passwd | cut -d : -f 1 + else if test -x /usr/bin/dscl # OS X support + dscl . -list /Users else sgrep -ve '^#' /etc/passwd | cut -d : -f 1 end