diff options
Diffstat (limited to 'share/functions/__fish_print_users.fish')
-rw-r--r-- | share/functions/__fish_print_users.fish | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/functions/__fish_print_users.fish b/share/functions/__fish_print_users.fish index f6d41fa9..d2915760 100644 --- a/share/functions/__fish_print_users.fish +++ b/share/functions/__fish_print_users.fish @@ -3,9 +3,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 if test -x /usr/bin/dscl # OS X support - dscl . -list /Users | __fish_sgrep -v '^_' + dscl . -list /Users | string match -r -v '^_' else - __fish_sgrep -ve '^#' /etc/passwd | cut -d : -f 1 + string match -v -r '^\w*#' < /etc/passwd | cut -d : -f 1 end end |