Fix No command 'dscl' found error of killall command

`dscl` command have OSX system, to change `__fish_print_users`
This commit is contained in:
Sunguk Lee 2016-02-15 18:40:49 +09:00
parent 00cd01c89e
commit c4f702b7c4

View file

@ -13,7 +13,7 @@ if test (uname) != 'SunOS'
# Finds and completes all users, and their respective UID.
function __make_users_completions
set -l users (dscl . list /Users | grep -v '^_.*')
set -l users (__fish_print_users)
for user in $users
set -l uid (id -u $user)
# GNU doesn't support UID